oca-ocb-l10n_americas/odoo-bringout-oca-ocb-l10n_pe/l10n_pe/models/res_city_district.py
2025-08-29 15:20:52 +02:00

14 lines
453 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class L10nPeResCityDistrict(models.Model):
_name = 'l10n_pe.res.city.district'
_description = 'District'
_order = 'name'
name = fields.Char(translate=True)
city_id = fields.Many2one('res.city', 'City')
code = fields.Char(
help='This code will help with the identification of each district '
'in Peru.')