From 094e196cbee30502d3e8f0d96bd237ff34d84542 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: Mon, 13 Oct 2025 17:30:52 +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 --- yuthon_property/models/yuthon_property.py | 2 +- .../views/property_accounts_receivable_views.xml | 8 ++++---- .../models/property_lease_contract.py | 2 +- yuthon_property_approval/models/property_lease_renewal.py | 1 - yuthon_trade/views/yuthon_contract_addition_views.xml | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/yuthon_property/models/yuthon_property.py b/yuthon_property/models/yuthon_property.py index 6add2edab..db07ce4fe 100644 --- a/yuthon_property/models/yuthon_property.py +++ b/yuthon_property/models/yuthon_property.py @@ -93,7 +93,7 @@ class YuthonProperty(models.Model): annual_increase_percentage = fields.Float(string='递增百分比', igits=(6, 2)) annual_increase_amount = fields.Float(string='递增金额', igits=(6, 2)) rent_unit = fields.Float(string='租金单价', igits=(6, 2)) - property_type = fields.Selection([('property', '物业'), ('guanggao', '广告位'), ('guanzi', '管子间')], string="资产类型", default='property') + property_type = fields.Selection([('property', '物业'), ('guanggao', '广告位'), ('guanzi', '管子间'), ('room', '机房'), ('base_station','基站'), ('other', '其他')], string="资产类型", default='property') def update_mange(self): property_ids = self.env['yuthon.property'].search([('name', 'ilike', '天河商贸大厦')]) diff --git a/yuthon_property/views/property_accounts_receivable_views.xml b/yuthon_property/views/property_accounts_receivable_views.xml index 40f226cf2..fe6e76cd3 100644 --- a/yuthon_property/views/property_accounts_receivable_views.xml +++ b/yuthon_property/views/property_accounts_receivable_views.xml @@ -7,10 +7,10 @@ - - - - + + + + diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index 9acf4358e..d115d8b97 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -273,7 +273,7 @@ class PropertyLeaseContract(models.Model): name_title = fields.Char(default=_get_default_name_title) - contract_sort = fields.Selection([('property', '物业'), ('ads', '广告位'), ('guan', '管子间')], string="合同类型") + contract_sort = fields.Selection([('property', '物业'), ('guanggao', '广告位'), ('guanzi', '管子间'), ('room', '机房'), ('base_station','基站'), ('other', '其他')], string="资产类型", default='property') @api.depends('lease_ids.address_id.title_deed') def _compute_title_information(self): diff --git a/yuthon_property_approval/models/property_lease_renewal.py b/yuthon_property_approval/models/property_lease_renewal.py index 4412a1b05..ec8997f34 100644 --- a/yuthon_property_approval/models/property_lease_renewal.py +++ b/yuthon_property_approval/models/property_lease_renewal.py @@ -47,7 +47,6 @@ class PropertyLeaseRenewal(models.Model): document_ids = fields.Many2many('ir.attachment', string="变更附件") early_reason = fields.Text(string="退租原因") - display_quitting_date = fields.Date(string="退租日期") early_quitting_date = fields.Date(string="退租日期") active = fields.Boolean('Active', default=True, tracking=True) diff --git a/yuthon_trade/views/yuthon_contract_addition_views.xml b/yuthon_trade/views/yuthon_contract_addition_views.xml index f7996e911..7855c6718 100644 --- a/yuthon_trade/views/yuthon_contract_addition_views.xml +++ b/yuthon_trade/views/yuthon_contract_addition_views.xml @@ -45,7 +45,7 @@ - +