From c6ff5b61ee177bb92e04158fc77eb7adde42971a 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, 11 May 2026 16:34:23 +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_approval/models/property_bills_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_property_approval/models/property_bills_list.py b/yuthon_property_approval/models/property_bills_list.py index dbc315191..46cdefd7c 100644 --- a/yuthon_property_approval/models/property_bills_list.py +++ b/yuthon_property_approval/models/property_bills_list.py @@ -13,7 +13,7 @@ class PropertyBillsList(models.Model): amount_actual = fields.Float(string='实付') receivables_id = fields.Many2one('property.accounts.receivable', string='应收账单') contract_id = fields.Many2one('property.lease.contract', string="合同编号") - lessor_id = fields.Many2one('yuthon.property.company', string="支付公司") + lessor_id = fields.Many2one(related='contract_id.lessor_id', string="支付公司") lessee_id = fields.Many2one(related="contract_id.lessee_id", string="承租方", store=True) property_name = fields.Char(related='contract_id.property_name', string="物业信息") workflow_record_id = fields.Many2one('soong.workflow.record', string="流程")