[IMP] base_usability: add possibility to have fax in header if partner_fax is installed

This commit is contained in:
Alexis de Lattre
2024-11-19 16:14:35 +00:00
parent 59c7084159
commit 5f4929f819

View File

@@ -86,6 +86,13 @@ class ResCompany(models.Model):
# 'legal_type' added by base_company_extension
if hasattr(self, 'legal_type') and self.legal_type:
options['capital']['label'] = _('%s with a capital of') % self.legal_type
# 'fax' added by OCA/partner-contact module 'partner_fax'
if hasattr(self.partner_id, 'fax'):
options['fax'] = {
'value': self.partner_id.fax or False,
'icon': '\U0001F5B7',
'label': _('Fax:'),
}
return options
def _get_eori(self):