Skip to content

Commit

Permalink
[IMP] partner_second_lastname: adapt to partner_firstname changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CRogos committed Nov 8, 2024
1 parent 63db919 commit db5efc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions partner_second_lastname/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def _compute_name(self):
def _inverse_name(self):
"""Try to revert the effect of :meth:`._compute_name`."""
self.ensure_one()
if self.env.context.get("no_inverse_name"):
return
parts = self._get_inverse_name(self.name, self.is_company)
# Avoid to hit :meth:`~._check_name` with all 3 fields being ``False``
before, after = {}, {}
Expand Down

0 comments on commit db5efc4

Please sign in to comment.