From 75aa8a8a97ff32e794052a6e433d8f0192967a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Thu, 25 Sep 2025 11:00:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../models/property_meter_archives.py | 2 + .../models/property_meter_water.py | 2 + .../views/property_meter_archives_views.xml | 1 + .../views/property_meter_water_views.xml | 1 + yuthon_property_approval/__manifest__.py | 1 + .../models/inherit_yuthon_property.py | 19 ++++++ .../security/ir.model.access.csv | 4 ++ .../views/inherit_yuthon_property_views.xml | 2 + yuthon_property_approval/wizard/__init__.py | 3 +- .../wizard/penalty_line_wizard.py | 50 ++++++++++++++++ .../wizard/penalty_line_wizard_viwes.xml | 58 +++++++++++++++++++ .../wizard/property_reconciliation_wizard.py | 4 +- .../property_reconciliation_wizard_views.xml | 2 +- 13 files changed, 144 insertions(+), 5 deletions(-) create mode 100644 yuthon_property_approval/wizard/penalty_line_wizard.py create mode 100644 yuthon_property_approval/wizard/penalty_line_wizard_viwes.xml 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 @@