Merge pull request !11407 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2026-05-09 11:38:28 +00:00
committed by Gitee
2 changed files with 6 additions and 8 deletions
@@ -711,9 +711,8 @@ class PropertyLeaseContract(models.Model):
def _compute_reconciliation_count(self):
for record in self:
record.reconciliation_count = self.env['property.bank.statements'].search_count([('contract_id', '=', record.id),
('name_account', '=', record.lessee_id.name)
])
record.reconciliation_count = self.env['receivable.modify.line'].search_count([('receivable_id.contract_id', '=', self.id)])
def _compute_process_count(self):
for record in self:
record.process_count = self.env['soong.workflow.record'].search_count([('code', '=', record.code)])
@@ -732,9 +731,8 @@ class PropertyLeaseContract(models.Model):
def action_open_reconciliation(self):
self.ensure_one()
action = self.env["ir.actions.actions"]._for_xml_id("yuthon_property.view_property_bank_statements_action1")
action.update({'domain': [('contract_id', '=', self.id),
('name_account', '=', self.lessee_id.name)
action = self.env["ir.actions.actions"]._for_xml_id("yuthon_work_brand.action_receivable_modify_line_wbrand")
action.update({'domain': [('receivable_id.contract_id', '=', self.id),
]
})
return action
@@ -336,7 +336,7 @@
</tree>
</field>
</page>
<page string="银行流水" invisible="(state in ['分管领导', '总经理']) and (not work_end)">
<page string="银行流水" invisible="1">
<field name="bank_statements_ids" string=" ">
<tree editable="bottom">
<field name="start_time"/>
@@ -844,7 +844,7 @@
</tree>
</field>
</page>
<page string="银行流水">
<page string="银行流水" invisible="1">
<field name="bank_statements_ids" string=" ">
<tree editable="bottom" delete="false">
<field name="start_time"/>