Skip to content

Commit

Permalink
[MIG] l10n_be_cooperator_website_national_number: Migration to 14.0
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
  • Loading branch information
carmenbianca committed May 24, 2023
1 parent 2c9b307 commit 8f6d5e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l10n_be_cooperator_website_national_number/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Ask for Belgian National Number in Cooperative
Subscription Request Frontend Form.
""",
"version": "13.0.1.0.0",
"version": "14.0.1.0.0",
"depends": [
"l10n_be_cooperator_national_number",
"l10n_be_cooperator",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def get_values_from_user(self, values, is_company):
values = super().get_values_from_user(values, is_company)
if request.env.user.login != "public":
partner = request.env.user.partner_id
company = request.env["res.company"]._company_default_get()
company = request.env.company
if not is_company and company.require_national_number:
national_number_id_category = request.env.ref(
"l10n_be_national_number.l10n_be_national_number_category"
Expand Down

0 comments on commit 8f6d5e3

Please sign in to comment.