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="流程")