Skip to content

Commit 94cb5f5

Browse files
committed
[ADD] l10n_ar_website_sale_ux: add portal address templates for company checkout fix
closes #450 Signed-off-by: Pablo Montenegro - pam (#l10n) <pam@adhoc.com.ar>
1 parent 18c4eee commit 94cb5f5

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

l10n_ar_website_sale_ux/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"data": [
3232
"views/l10n_ar_website_sale_ux.xml",
3333
"views/l10n_ar_website_sale_hide_taxes.xml",
34+
"views/portal_address_templates.xml",
3435
],
3536
"installable": True,
3637
"auto_install": ["l10n_ar_website_sale"],
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
<!-- Hacemos este parche para evitar KeyError con el usuario de Soporte Adhoc en checkout -->
4+
<template id="address_form_fields_company_fix" inherit_id="portal.address_form_fields">
5+
<xpath expr="//div[contains(@t-if, 'is_used_as_billing') and contains(@t-if, &quot;res_company.country_id.code == 'AR'&quot;)]" position="attributes">
6+
<attribute name="t-if">is_used_as_billing and request.env.company.country_code == 'AR'</attribute>
7+
</xpath>
8+
</template>
9+
</odoo>

0 commit comments

Comments
 (0)