diff --git a/yuthon_property_approval/models/inherit_yuthon_property.py b/yuthon_property_approval/models/inherit_yuthon_property.py index 150e5d012..05bce3f39 100644 --- a/yuthon_property_approval/models/inherit_yuthon_property.py +++ b/yuthon_property_approval/models/inherit_yuthon_property.py @@ -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):