Browse Source

[MIG] migrate to 9.0

pull/364/head
Holger Brunn 8 years ago
committed by Pedro M. Baeza
parent
commit
b29940a07f
  1. 4
      base_vat_sanitized/README.rst
  2. 2
      base_vat_sanitized/__openerp__.py
  3. 4
      base_vat_sanitized/models/res_partner.py

4
base_vat_sanitized/README.rst

@ -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
@ -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
=======

2
base_vat_sanitized/__openerp__.py

@ -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',

4
base_vat_sanitized/models/res_partner.py

@ -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.')
@ -20,6 +20,6 @@ class ResPartner(models.Model):
@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)
Loading…
Cancel
Save