You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
966 B

  1. # -*- coding: utf-8 -*-
  2. # © 2015 Antiun Ingeniería S.L. - Jairo Llopis
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from openerp import models, fields
  5. class ResCountry(models.Model):
  6. """Add labels corresponding to each country.
  7. These stay empty in this base module, and should be filled by l10n ones.
  8. """
  9. _inherit = "res.country"
  10. state_label = fields.Char(
  11. translate=True,
  12. help="Label for the state NUTS category.")
  13. substate_label = fields.Char(
  14. translate=True,
  15. help="Label for the substate NUTS category.")
  16. region_label = fields.Char(
  17. translate=True,
  18. help="Label for the region NUTS category.")
  19. state_level = fields.Integer(
  20. help="Level for the state NUTS category.")
  21. substate_level = fields.Integer(
  22. help="Level for the substate NUTS category.")
  23. region_level = fields.Integer(
  24. help="Level for the region NUTS category.")