From cdf20ce6c39c3df84eea9af712804e4e3c8893d2 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, 9 Apr 2026 15:49:40 +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/wizard/property_statements_wizard.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/yuthon_property/wizard/property_statements_wizard.py b/yuthon_property/wizard/property_statements_wizard.py index 91e8504bf..6b454a52f 100644 --- a/yuthon_property/wizard/property_statements_wizard.py +++ b/yuthon_property/wizard/property_statements_wizard.py @@ -536,13 +536,12 @@ class PropertyStatementsWizard(models.Model): existing_record.write(bank_data) def _get_company_by_unit(self, unit_name): - if unit_name in ['天河投资', '天投城建', '兴源公司']: - return self.env['res.company'].sudo().search([('name', '=', '集团本部')], limit=1) - elif unit_name == '天河物管': + if unit_name == '天河物管': return self.env['res.company'].sudo().search([('name', '=', '天河物管')], limit=1) elif unit_name == '天河粮储': return self.env['res.company'].sudo().search([('name', '=', '天河粮储')], limit=1) - return False + else: + return self.env['res.company'].sudo().search([('name', '=', '集团本部')], limit=1) def classify_by_last_four(self, input_str): if not isinstance(input_str, str) or not input_str.strip():