195bc157aba1e9bcd1c21b349580d1fb2022fc18
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`) is customizable (meaning it can be enabled/disabled), it is possible for all countries to display/hide the b2b fields, but for some countries (for example Argentina) it should not; the b2b fields should always be displayed. Solution: Add a method (`_display_partner_b2b_fields`) on website model to know if b2b fields should be displayed: return True if `address_b2b` view is active on current website or if the company (based on the country) must display them. Move content (b2b fields; vat and company name fields) of view `address_b2b` in `address` main view and let the `address_b2b` only be used as switch to display or hide the b2b fields. Add a condition in `address` view to display b2b fields only if the method `_display_partner_b2b_fields` returns `True` opw-2941199 closes odoo/odoo#104505 X-original-commit: 1b5c85722db00a44ed8c6cb0c2bdba8905dc5292 Signed-off-by: Josse Colpaert <jco@odoo.com> Signed-off-by: Nasreddin Boulif (bon) <bon@odoo.com>
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%