diff --git a/yuthon_property/models/property_meter_archives.py b/yuthon_property/models/property_meter_archives.py index d2f027801..d2afbeb5a 100644 --- a/yuthon_property/models/property_meter_archives.py +++ b/yuthon_property/models/property_meter_archives.py @@ -6,9 +6,11 @@ from odoo.exceptions import UserError, ValidationError class PropertyMeterArchives(models.Model): _name = 'property.meter.archives' _description = '电表库' + _order = 'number asc' name = fields.Char(string='仪表编号') unit_number = fields.Char(string='单元编号/用途') + number = fields.Char(string="序号") installation_location = fields.Char(string='安装位置') is_state = fields.Boolean(string='是否启用') type = fields.Selection([('public', '公共'), ('fees', '收费')], string='类型') diff --git a/yuthon_property/models/property_meter_water.py b/yuthon_property/models/property_meter_water.py index 1a930c3ab..5023012d5 100644 --- a/yuthon_property/models/property_meter_water.py +++ b/yuthon_property/models/property_meter_water.py @@ -5,8 +5,10 @@ from odoo.exceptions import UserError, ValidationError class PropertyMeterWater(models.Model): _name = 'property.meter.water' _description = '水表库' + _order = 'number asc' name = fields.Char(string='仪表编号') + number = fields.Char(string="序号") unit_number = fields.Char(string='单元编号/用途') installation_location = fields.Char(string='安装位置') is_state = fields.Boolean(string='是否启用') diff --git a/yuthon_property/views/property_meter_archives_views.xml b/yuthon_property/views/property_meter_archives_views.xml index f4e0fc0eb..88827a6e4 100644 --- a/yuthon_property/views/property_meter_archives_views.xml +++ b/yuthon_property/views/property_meter_archives_views.xml @@ -10,6 +10,7 @@