Skip to content

Commit

Permalink
[REF] l10n_be_cooperator_national_number: Improve method name
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Jun 13, 2024
1 parent a51fa1b commit 3c54517
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l10n_be_cooperator_national_number/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def check_be_national_register_number(self, national_number, error=False):
return True
return False

def update_belgian_national_number(self, national_number):
def update_be_national_register_number(self, national_number):
self.ensure_one()
result = None
if national_number:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def validate_subscription_request(self):
invoice = super().validate_subscription_request()
if not self.is_company:
partner = invoice.partner_id
partner.update_belgian_national_number(self.national_number)
partner.update_be_national_register_number(self.national_number)
return invoice

def set_person_info(self, partner):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
``update_belgian_national_number`` renamed to
``update_be_national_register_number``.

0 comments on commit 3c54517

Please sign in to comment.