mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 18:22:02 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
|
|
@ -6,3 +6,12 @@ class ResPartner(models.Model):
|
|||
_inherit = 'res.partner'
|
||||
|
||||
l10n_no_bronnoysund_number = fields.Char(string='Register of Legal Entities (Brønnøysund Register Center)', size=9)
|
||||
|
||||
def _deduce_country_code(self):
|
||||
if self.l10n_no_bronnoysund_number:
|
||||
return 'NO'
|
||||
return super()._deduce_country_code()
|
||||
|
||||
def _peppol_eas_endpoint_depends(self):
|
||||
# extends account_edi_ubl_cii
|
||||
return super()._peppol_eas_endpoint_depends() + ['l10n_no_bronnoysund_number']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue