| 1 |
from odoo import fields, models, api |
| 2 |
|
| 3 |
|
| 4 |
class ResPartner(models.Model): |
| 5 |
_inherit = 'res.partner' |
| 6 |
|
| 7 |
l10n_sa_edi_building_number = fields.Char("Building Number") |
| 8 |
l10n_sa_edi_plot_identification = fields.Char("Plot Identification") |
| 9 |
|
| 10 |
l10n_sa_edi_additional_identification_scheme = fields.Selection([ |
| 11 |
('TIN', 'Tax Identification Number'), |
| 12 |
('CRN', 'Commercial Registration Number'), |
| 13 |
('MOM', 'Momra License'), |
| 14 |
('MLS', 'MLSD License'), |
| 15 |
('700', '700 Number'), |
| 16 |
('SAG', 'Sagia License'), |
| 17 |
('NAT', 'National ID'), |
| 18 |
('GCC', 'GCC ID'), |
| 19 |
('IQA', 'Iqama Number'), |
| 20 |
('PAS', 'Passport ID'), |
| 21 |
('OTH', 'Other ID') |
| 22 |
], default="OTH", string="Identification Scheme", help="Additional Identification Scheme for the Seller/Buyer") |
| 23 |
|
| 24 |
l10n_sa_edi_additional_identification_number = fields.Char("Identification Number (SA)", help="Additional Identification Number for the Seller/Buyer") |
| 25 |
|
| 26 |
@api.model |
| 27 |
def _commercial_fields(self): |
| 28 |
return super()._commercial_fields() + ['l10n_sa_edi_building_number', |
| 29 |
'l10n_sa_edi_plot_identification', |
| 30 |
'l10n_sa_edi_additional_identification_scheme', |
| 31 |
'l10n_sa_edi_additional_identification_number'] |
| 32 |
|
| 33 |
def _address_fields(self): |
| 34 |
return super()._address_fields() + ['l10n_sa_edi_building_number', |
| 35 |
'l10n_sa_edi_plot_identification'] |