Odoo18-Base/addons/l10n_ec_website_sale/models/website.py
2025-01-06 10:57:38 +07:00

13 lines
391 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class Website(models.Model):
_inherit = "website"
def _display_partner_b2b_fields(self):
"""Ecuadorian localization must always display b2b fields"""
self.ensure_one()
return self.company_id.country_id.code == "EC" or super()._display_partner_b2b_fields()