Merge pull request !6663 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2025-11-24 09:25:54 +00:00
committed by Gitee
@@ -564,12 +564,12 @@ class PropertyBankStatements(models.Model):
])
if statements:
unreconciled[account] = len(statements)
# if unreconciled:
# raise UserError("存在未对账的历史流水,请优先处理:")
if unreconciled:
raise UserError("存在未对账的历史流水,请优先处理:")
def button_reconciliation(self):
for record in self:
all_vals, total_rent_month, used_type_names = self._get_reconciliation_vals(record, record.contract_ids, is_equity=False)
all_vals, total_rent_month, used_type_names = self._get_reconciliation_vals(record, record.contract_ids)
return self._get_context_and_action(record, all_vals, total_rent_month, used_type_names)
def put_button(self):