Browse Source

[14.0][MIG] partner_address_version: Migration to 14.0

14.0
Kevin Khao 4 years ago
parent
commit
dff3343f93
  1. 2
      partner_address_version/__manifest__.py
  2. 1
      partner_address_version/models/res_partner.py

2
partner_address_version/__manifest__.py

@ -2,7 +2,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{ {
"name": "Partner Address Version", "name": "Partner Address Version",
"version": "12.0.1.0.0",
"version": "14.0.1.0.0",
"author": "Akretion, " "Odoo Community Association (OCA)", "author": "Akretion, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/partner-contact", "website": "https://github.com/OCA/partner-contact",
"category": "CRM", "category": "CRM",

1
partner_address_version/models/res_partner.py

@ -81,7 +81,6 @@ class ResPartner(models.Model):
partner_wizard._update_foreign_keys(self, version_p) partner_wizard._update_foreign_keys(self, version_p)
return False return False
@api.multi
def write(self, vals): def write(self, vals):
version_fields = self._version_fields() version_fields = self._version_fields()
has_written_versioned_fields = any((f in version_fields) for f in vals.keys()) has_written_versioned_fields = any((f in version_fields) for f in vals.keys())

Loading…
Cancel
Save