From 8d7260c8f171d92490ca211ce10aebc094fde645 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Wed, 27 Aug 2025 19:12:18 +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/property_bank_statements.py | 4 ++-- yuthon_property/models/yuthon_property.py | 4 +--- yuthon_property/views/yuthon_property_views.xml | 2 +- yuthon_property_approval/models/property_handover.py | 11 ++++++++++- .../wizard/property_reconciliation_wizard.py | 12 +++++++++++- 5 files changed, 25 insertions(+), 8 deletions(-) diff --git a/yuthon_property/models/property_bank_statements.py b/yuthon_property/models/property_bank_statements.py index 7c3bf01af..8176f5261 100644 --- a/yuthon_property/models/property_bank_statements.py +++ b/yuthon_property/models/property_bank_statements.py @@ -38,14 +38,14 @@ class PropertyBankStatements(models.Model): remake = fields.Text('备注') registered = fields.Float('挂账') - create_receivable_id = fields.Many2many( + create_receivable_ids = fields.Many2many( 'property.accounts.receivable', 'property_bank_stmt_create_receivable_rel', 'bank_stmt_id', 'receivable_id', string='创建应收单' ) - write_receivable_id = fields.Many2many( + write_receivable_ids = fields.Many2many( 'property.accounts.receivable', 'property_bank_stmt_write_receivable_rel', 'bank_stmt_id', diff --git a/yuthon_property/models/yuthon_property.py b/yuthon_property/models/yuthon_property.py index a25825a02..8894c1ee5 100644 --- a/yuthon_property/models/yuthon_property.py +++ b/yuthon_property/models/yuthon_property.py @@ -252,7 +252,6 @@ class YuthonProperty(models.Model): 'default_property_id': self.id } } - def put_property_handover(self): property_ids = self.env["yuthon.property"].browse( self._context.get('active_ids', self._context.get('active_id'))) @@ -260,8 +259,6 @@ class YuthonProperty(models.Model): property_list = [] for record in property_ids: property_list.append([0, 0, {'property_id': record.id}]) - for i in property_ids: - i.write({'property_state': 'ing_handover'}) return { 'name': '提交物业移交', 'view_mode': 'form', @@ -273,6 +270,7 @@ class YuthonProperty(models.Model): } } + def put_property_management(self): property_ids = self.env["yuthon.property"].browse( self._context.get('active_ids', self._context.get('active_id'))) diff --git a/yuthon_property/views/yuthon_property_views.xml b/yuthon_property/views/yuthon_property_views.xml index ef4525750..b6d37ecd1 100644 --- a/yuthon_property/views/yuthon_property_views.xml +++ b/yuthon_property/views/yuthon_property_views.xml @@ -7,6 +7,7 @@