Skip to content

Commit f745cf0

Browse files
committed
[FIX] l10n_ar_ux: avoid error when inheriting portal_my_details_fields if node is missing on install l10n_uy_website_sale
Prevents an error during module installation of l10n_uy_website_sale does not yet contain the `<label for="vat">` nodes because we where replacing with nothing Odoo commit: adhoc-cicd/odoo-odoo@42c43db Instead of using `position="replace"` (which removes the node and fails if it doesn't exist), we hide the elements via `position="attributes"` and `class="d-none"`, ensuring backward compatibility and avoiding inheritance errors. This prevents installation failures when using an Odoo version prior to that commit. closes #1141 X-original-commit: 7a4ab2e Signed-off-by: Felipe Garcia Suez <feg@adhoc.com.ar> Signed-off-by: rov-adhoc <rov@adhoc.com.ar>
1 parent d4cd89f commit f745cf0

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

l10n_ar_ux/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Argentinian Accounting UX",
3-
"version": "18.0.1.4.0",
3+
"version": "18.0.1.5.0",
44
"category": "Localization/Argentina",
55
"sequence": 14,
66
"author": "ADHOC SA",

l10n_ar_ux/views/portal_templates.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@
6666

6767
<template id="portal_my_details_fields" name="portal_my_details_fields" inherit_id="portal.portal_my_details_fields">
6868
<xpath expr="//label[@for='company_name']/.." position="replace"/>
69-
<xpath expr="//label[@for='vat']/.." position="replace"/>
69+
<xpath expr="//label[@for='vat']/.." position="attributes">
70+
<attribute name="invisible">True</attribute>
71+
</xpath>
7072
</template>
7173

7274
<template id="portal_my_details" name="portal_my_details" inherit_id="portal.portal_my_details">

0 commit comments

Comments
 (0)