mirror of
https://github.com/bringout/oca-ocb-l10n_asia-pacific.git
synced 2026-04-26 22:02:06 +02:00
19.0 vanilla
This commit is contained in:
parent
7dc55599c6
commit
7f43bbbfcc
650 changed files with 45260 additions and 33436 deletions
|
|
@ -2,8 +2,17 @@
|
|||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_name = 'res.partner'
|
||||
_inherit = 'res.partner'
|
||||
|
||||
l10n_sg_unique_entity_number = fields.Char(string='UEN')
|
||||
|
||||
def _deduce_country_code(self):
|
||||
if self.l10n_sg_unique_entity_number:
|
||||
return 'SG'
|
||||
return super()._deduce_country_code()
|
||||
|
||||
def _peppol_eas_endpoint_depends(self):
|
||||
# extends account_edi_ubl_cii
|
||||
return super()._peppol_eas_endpoint_depends() + ['l10n_sg_unique_entity_number']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue