-
- Downloads
[FIX] l10n_ar_website_sale: always display b2b fields for argentina
Steps to reproduce:
- Install `l10n_ar_website_sale` module
- Go to shop (Argentinian website) and add a product to cart
- Open cart and click on checkout
- Click on Customize and disable `Show b2b fields` feature
Issue:
Fields are no more displayed.
Cause:
Since the b2b fields template (`address_b2b`) have customize_show set
to `True`, it is possible for all countries to display/hide
the b2b fields, but it should not.
For Argentinian companies (for example), the b2b fields should always
be displayed.
Solution:
For frontend (Website shop): in address form, if website company
country is Argentina, check if the address_b2b view is active and if
not, enable it.
For frontend and backend: on write of a view `address_b2b`, do not
allow to disable it if have a website and website company
country is Argentina.
opw-2941199
closes odoo/odoo#98084
Signed-off-by:
Josse Colpaert <jco@odoo.com>
Showing
- addons/l10n_ar_website_sale/__init__.py 1 addition, 0 deletionsaddons/l10n_ar_website_sale/__init__.py
- addons/l10n_ar_website_sale/i18n/es.po 6 additions, 0 deletionsaddons/l10n_ar_website_sale/i18n/es.po
- addons/l10n_ar_website_sale/i18n/l10n_ar_website_sale.pot 6 additions, 0 deletionsaddons/l10n_ar_website_sale/i18n/l10n_ar_website_sale.pot
- addons/l10n_ar_website_sale/models/__init__.py 1 addition, 0 deletionsaddons/l10n_ar_website_sale/models/__init__.py
- addons/l10n_ar_website_sale/models/ir_ui_view.py 14 additions, 0 deletionsaddons/l10n_ar_website_sale/models/ir_ui_view.py
Please register or sign in to comment