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)
|
||||
Reference in New Issue
Block a user