diff --git a/account_usability/account_statement_black_cancel_blue_ok.diff b/account_usability/account_statement_black_cancel_blue_ok.diff new file mode 100644 index 0000000..5ebc1bf --- /dev/null +++ b/account_usability/account_statement_black_cancel_blue_ok.diff @@ -0,0 +1,14 @@ +diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py +index 4374528..aea1361 100644 +--- a/addons/account/models/account_bank_statement.py ++++ b/addons/account/models/account_bank_statement.py +@@ -1008,7 +1008,7 @@ class AccountBankStatementLine(models.Model): + #record the move name on the statement line to be able to retrieve it in case of unreconciliation + self.write({'move_name': move.name}) + payment.write({'payment_reference': move.name}) +- elif self.move_name: +- raise UserError(_('Operation not allowed. Since your statement line already received a number, you cannot reconcile it entirely with existing journal entries otherwise it would make a gap in the numbering. You should book an entry and make a regular revert of it in case you want to cancel it.')) ++ #elif self.move_name: ++ # raise UserError(_('Operation not allowed. Since your statement line already received a number, you cannot reconcile it entirely with existing journal entries otherwise it would make a gap in the numbering. You should book an entry and make a regular revert of it in case you want to cancel it.')) + counterpart_moves.assert_balanced() + return counterpart_moves