@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user