mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]14.0-pms: added priority field to res country model and set priority 10 to Spain country in l10n_es
This commit is contained in:
@@ -51,3 +51,4 @@ from . import ir_pms_property
|
||||
from . import payment_acquirer
|
||||
from . import account_analytic_line
|
||||
from . import res_partner_category
|
||||
from . import res_country
|
||||
|
||||
9
pms/models/res_country.py
Normal file
9
pms/models/res_country.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from odoo import fields, models, api
|
||||
|
||||
|
||||
class Country(models.Model):
|
||||
_inherit = 'res.country'
|
||||
_description = 'Country'
|
||||
_order = 'priority, name'
|
||||
|
||||
priority = fields.Integer(string='Priority', default=1000)
|
||||
@@ -50,15 +50,15 @@ else:
|
||||
<field name="aeat_identification_type">02</field>
|
||||
</record>
|
||||
<record
|
||||
id="pms.document_type_spanish_residence"
|
||||
model="res.partner.id_category"
|
||||
>
|
||||
id="pms.document_type_spanish_residence"
|
||||
model="res.partner.id_category"
|
||||
>
|
||||
<field name="aeat_identification_type">05</field>
|
||||
</record>
|
||||
<record
|
||||
id="pms.document_type_european_residence"
|
||||
model="res.partner.id_category"
|
||||
>
|
||||
id="pms.document_type_european_residence"
|
||||
model="res.partner.id_category"
|
||||
>
|
||||
<field name="aeat_identification_type">05</field>
|
||||
</record>
|
||||
<record id="pms.document_type_passport" model="res.partner.id_category">
|
||||
@@ -68,9 +68,12 @@ else:
|
||||
<field name="aeat_identification_type">06</field>
|
||||
</record>
|
||||
<record
|
||||
id="pms.document_type_identification_document"
|
||||
model="res.partner.id_category"
|
||||
>
|
||||
id="pms.document_type_identification_document"
|
||||
model="res.partner.id_category"
|
||||
>
|
||||
<field name="aeat_identification_type">06</field>
|
||||
</record>
|
||||
<record id="base.es" model="res.country">
|
||||
<field name="priority">10</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user