13 lines
391 B
Python
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()
|