Browse Source

After all, this was just a workaround. Remove it.

The real fix was in #171. I leave the tests.
pull/238/head
Jairo Llopis 9 years ago
committed by Yannick Vaucher
parent
commit
21c63b4261
  1. 2
      partner_firstname/__openerp__.py
  2. 3
      partner_firstname/models.py

2
partner_firstname/__openerp__.py

@ -21,7 +21,7 @@
{
'name': 'Partner first name and last name',
'summary': "Split first name and last name for non company partners",
'version': '8.0.2.1.1',
'version': '8.0.2.1.0',
'author': "Camptocamp, Grupo ESOC, Odoo Community Association (OCA)",
"license": "AGPL-3",
'maintainer': 'Camptocamp, Acsone',

3
partner_firstname/models.py

@ -99,8 +99,7 @@ class ResPartner(models.Model):
@api.depends("firstname", "lastname")
def _compute_name(self):
"""Write the 'name' field according to splitted data."""
if self.exists():
self.name = self._get_computed_name(self.lastname, self.firstname)
self.name = self._get_computed_name(self.lastname, self.firstname)
@api.one
def _inverse_name_after_cleaning_whitespace(self):

Loading…
Cancel
Save