Skip to content

Commit

Permalink
[MIG] l10n_nl_partner_name: Migration to 11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
George Daramouskas committed Nov 28, 2018
1 parent d97fdd5 commit 33873ce
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
3 changes: 0 additions & 3 deletions l10n_nl_partner_name/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# -*- coding: utf-8 -*-
# © 2017 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import model
3 changes: 1 addition & 2 deletions l10n_nl_partner_name/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
# © 2017 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Dutch partner names',
'version': '10.0.1.1.0',
'version': '11.0.0.0.0',
'author': 'Therp BV, Odoo Community Association (OCA)',
'category': 'Contact management',
'depends': [
Expand Down
3 changes: 0 additions & 3 deletions l10n_nl_partner_name/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# -*- coding: utf-8 -*-
# © 2017 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import res_partner
1 change: 0 additions & 1 deletion l10n_nl_partner_name/model/res_partner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# © 2017 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from mako.template import Template
Expand Down
4 changes: 2 additions & 2 deletions l10n_nl_partner_name/scripts/guess_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def add_token(values, key, token, delimiter=' '):
for partner in odoo_execute(
'res.partner', 'read', ids,
['lastname', 'firstname', 'initials', 'infix']):
print partner['lastname']
print(partner['lastname'])

have_infix = False
tokens = partner['lastname'].split()
Expand All @@ -76,7 +76,7 @@ def add_token(values, key, token, delimiter=' '):
add_token(partner, 'firstname', token)
partner['lastname'] = ' '.join(tokens)

print partner
print(partner)
odoo_execute('res.partner', 'write', partner['id'], partner)

offset += limit

0 comments on commit 33873ce

Please sign in to comment.