oca-ocb-l10n_americas/odoo-bringout-oca-ocb-l10n_pe/l10n_pe/models/res_city_district.py
Ernad Husremovic 1b82c20a58 19.0 vanilla
2026-03-09 09:31:16 +01:00

14 lines
454 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class L10n_PeResCityDistrict(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.')