[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:
braisab
2024-03-12 11:35:49 +01:00
committed by Darío Lodeiros
parent 06aad3e01a
commit 135be7855d
3 changed files with 22 additions and 9 deletions

View File

@@ -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

View 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)