base_usability: Add rcs_siren in company header
This commit is contained in:
@@ -69,6 +69,10 @@ class ResCompany(models.Model):
|
|||||||
'value': hasattr(self, 'siren') and self.siren or False,
|
'value': hasattr(self, 'siren') and self.siren or False,
|
||||||
'label': _('SIREN:'),
|
'label': _('SIREN:'),
|
||||||
},
|
},
|
||||||
|
'rcs_siren': {
|
||||||
|
'value': hasattr(self, 'siren') and self.siren and self.company_registry and f"{self.company_registry} {self.siren}",
|
||||||
|
'label': 'RCS',
|
||||||
|
},
|
||||||
'eori': {
|
'eori': {
|
||||||
'value': self._get_eori(),
|
'value': self._get_eori(),
|
||||||
'label': _('EORI:'),
|
'label': _('EORI:'),
|
||||||
@@ -102,7 +106,7 @@ class ResCompany(models.Model):
|
|||||||
"""This method is designed to be inherited"""
|
"""This method is designed to be inherited"""
|
||||||
# I decided not to put email in the default header because only a few very small
|
# I decided not to put email in the default header because only a few very small
|
||||||
# companies have a generic company email address
|
# companies have a generic company email address
|
||||||
line_details = [['phone', 'website', 'capital'], ['vat', 'siret', 'eori', 'ape']]
|
line_details = [['phone', 'website', 'rcs_siren', 'capital'], ['vat', 'siret', 'eori', 'ape']]
|
||||||
return line_details
|
return line_details
|
||||||
|
|
||||||
# for reports
|
# for reports
|
||||||
|
|||||||
Reference in New Issue
Block a user