Skip to content

Commit

Permalink
Resolve issue blocking partner_firstname from installation
Browse files Browse the repository at this point in the history
This change fixes this bug: OCA#1677

With that the module can be installed as only partners with names will be processed
  • Loading branch information
mohs8421 authored Feb 28, 2024
1 parent f347842 commit 009ad95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partner_firstname/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def _install_partner_firstname(self):
correctly into the database. This can be called later too if needed.
"""
# Find records with empty firstname and lastname
records = self.search([("firstname", "=", False), ("lastname", "=", False)])
records = self.search([("firstname", "=", False), ("lastname", "=", False), ("name", "!=", "")])

# Force calculations there
records._inverse_name()
Expand Down

0 comments on commit 009ad95

Please sign in to comment.