diff --git a/cooperator/models/subscription_request.py b/cooperator/models/subscription_request.py index 143073b26..0330385e6 100644 --- a/cooperator/models/subscription_request.py +++ b/cooperator/models/subscription_request.py @@ -475,7 +475,7 @@ def _compute_subscription_amount(self): _order = "id desc" - def get_person_info(self, partner): + def set_person_info(self, partner): self.firstname = partner.firstname self.name = partner.name self.lastname = partner.lastname @@ -504,10 +504,10 @@ def onchange_partner(self): self.company_email = partner.email self.company_register_number = partner.company_register_number representative = partner.get_representative() - self.get_person_info(representative) + self.set_person_info(representative) self.contact_person_function = representative.function else: - self.get_person_info(partner) + self.set_person_info(partner) # fixme: this is very specific and should not be here. # declare this function in order to be overriden diff --git a/l10n_be_cooperator_national_number/models/subscription_request.py b/l10n_be_cooperator_national_number/models/subscription_request.py index 6db07d7ef..83d9adc2c 100644 --- a/l10n_be_cooperator_national_number/models/subscription_request.py +++ b/l10n_be_cooperator_national_number/models/subscription_request.py @@ -44,7 +44,7 @@ def validate_subscription_request(self): partner.update_belgian_national_number(self.national_number) return invoice - def get_person_info(self, partner): - super().get_person_info(partner) + def set_person_info(self, partner): + super().set_person_info(partner) self.national_number = self.get_national_number_from_partner(partner) return True