Skip to content

Commit

Permalink
[MIG] migrate to 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Dec 30, 2016
1 parent 0e0cc27 commit 799406d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions base_vat_sanitized/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This module doesn't bring any visible feature for the users.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/134/8.0
:target: https://runbot.odoo-community.org/runbot/134/9.0


Bug Tracker
Expand All @@ -33,7 +33,7 @@ help us smashing it by providing a detailed and welcomed `feedback
<https://github.com/OCA/
partner-contact/issues/new?body=module:%20
base_vat_sanitized%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Credits
=======
Expand Down
2 changes: 1 addition & 1 deletion base_vat_sanitized/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
'name': 'Base VAT Sanitized',
'version': '8.0.1.0.0',
'version': '9.0.1.0.0',
'category': 'Hidden/Dependency',
'license': 'AGPL-3',
'summary': 'Adds field sanitized_vat on partners',
Expand Down
4 changes: 2 additions & 2 deletions base_vat_sanitized/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ResPartner(models.Model):
_inherit = 'res.partner'

sanitized_vat = fields.Char(
compute='compute_sanitized_vat', string='Sanitized TIN',
compute='_compute_sanitized_vat', string='Sanitized TIN',
store=True, readonly=True,
help='TIN in uppercase without spaces nor special caracters.')

Expand All @@ -20,6 +20,6 @@ def _sanitize_vat(self, vat):

@api.multi
@api.depends('vat')
def compute_sanitized_vat(self):
def _compute_sanitized_vat(self):
for partner in self:
partner.sanitized_vat = self._sanitize_vat(partner.vat)

0 comments on commit 799406d

Please sign in to comment.