Skip to content

Commit

Permalink
After all, this was just a workaround. Remove it.
Browse files Browse the repository at this point in the history
The real fix was in OCA#171. I leave the tests.
  • Loading branch information
Jairo Llopis authored and yvaucher committed Jan 18, 2016
1 parent a2c1be2 commit 398a1f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions partner_contact_birthdate/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class Partner(models.Model):
@api.depends("birthdate_date")
def _birthdate_compute(self):
"""Store a string of the new date in the old field."""
if self.exists():
self.birthdate = self.birthdate_date
self.birthdate = self.birthdate_date

@api.one
def _birthdate_inverse(self):
Expand Down
2 changes: 1 addition & 1 deletion partner_firstname/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 1 addition & 2 deletions partner_firstname/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ def _get_computed_name(self, lastname, firstname):
@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):
Expand Down

0 comments on commit 398a1f5

Please sign in to comment.