Please sign in to comment.
[FIX] account: Validation error not raising.
In an account_bank_statement, when the type of the journal wasn't bank and the currency was not defined (the currency in account_bank_statement is optional) and the amount was zero. Before this commit, the validation error that raise when the amount is zero, wasn't working. This because, self.currency_id.is_zero is always False, when currency is not defined. Now, we take into account if currency is defined.
- Loading branch information...
Showing with 4 additions and 1 deletion.