From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/l10n_pe/models/res_city_district.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 addons/l10n_pe/models/res_city_district.py (limited to 'addons/l10n_pe/models/res_city_district.py') diff --git a/addons/l10n_pe/models/res_city_district.py b/addons/l10n_pe/models/res_city_district.py new file mode 100644 index 00000000..52ae38c0 --- /dev/null +++ b/addons/l10n_pe/models/res_city_district.py @@ -0,0 +1,14 @@ +# 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.') -- cgit v1.2.3