!5179 添加功能

Merge pull request !5179 from 李鹏宇/zhou
This commit is contained in:
李鹏宇
2025-09-16 08:54:33 +00:00
committed by Gitee
2 changed files with 2 additions and 2 deletions
@@ -401,7 +401,7 @@ class PropertyAccountsReceivable(models.Model):
property_name = fields.Text(string='物业', compute="_compute_property_name")
management_area = fields.Float(related='contract_id.total_area', string='面积')
title_deed = fields.Char(string="产权证号", compute='_compute_title_deed')
lessee_id = fields.Many2one(related='contract_id.lessee_id', string='承租方')
lessee_id = fields.Many2one(related='contract_id.lessee_id', string='承租方', stroe=True)
company_id = fields.Many2one('res.company', string="公司", default=lambda self: self.env.company)
contract_id = fields.Many2one('property.lease.contract', string="关联租赁合同审批")
admin_id = fields.Many2one(related='contract_id.admin_id', string="片区管理员", store=True)
@@ -401,7 +401,7 @@ class PropertyReconciliationWizard(models.Model):
]
# 检查是否已有相同记录
existing_record = self.env['property.accounts.receivable'].search(check_domain)
is_reconciliation = line.amount == round(line.rent, 2)
is_reconciliation = round(line.amount,2) == round(line.rent, 2)
if not existing_record:
domain2 = [