From 9d6ff0ed9e6421d2b899ac20b78ae3bcfec1b691 Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Thu, 13 Jun 2024 09:59:09 +0200 Subject: [PATCH] [REF] l10n_be_cooperator_national_number: Improve method name Signed-off-by: Carmen Bianca BAKKER --- l10n_be_cooperator_national_number/models/res_partner.py | 2 +- .../models/subscription_request.py | 2 +- .../readme/newsfragments/136.misc.2.rst | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 l10n_be_cooperator_national_number/readme/newsfragments/136.misc.2.rst diff --git a/l10n_be_cooperator_national_number/models/res_partner.py b/l10n_be_cooperator_national_number/models/res_partner.py index 2977c4145..23cb7f58c 100644 --- a/l10n_be_cooperator_national_number/models/res_partner.py +++ b/l10n_be_cooperator_national_number/models/res_partner.py @@ -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: diff --git a/l10n_be_cooperator_national_number/models/subscription_request.py b/l10n_be_cooperator_national_number/models/subscription_request.py index 92fb73bb6..d1260a2ed 100644 --- a/l10n_be_cooperator_national_number/models/subscription_request.py +++ b/l10n_be_cooperator_national_number/models/subscription_request.py @@ -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): diff --git a/l10n_be_cooperator_national_number/readme/newsfragments/136.misc.2.rst b/l10n_be_cooperator_national_number/readme/newsfragments/136.misc.2.rst new file mode 100644 index 000000000..9c3aecb7d --- /dev/null +++ b/l10n_be_cooperator_national_number/readme/newsfragments/136.misc.2.rst @@ -0,0 +1,2 @@ +``update_belgian_national_number`` renamed to +``update_be_national_register_number``.