fix: cannot save debit note with zero quantity
(cherry picked from commit 2be5104848)
This commit is contained in:
committed by
mergify-bot
parent
4ef9d289e8
commit
ecf341d1b1
@@ -114,7 +114,7 @@ class AccountsController(TransactionBase):
|
||||
_('{0} is blocked so this transaction cannot proceed').format(supplier_name), raise_exception=1)
|
||||
|
||||
def validate(self):
|
||||
if not self.get('is_return'):
|
||||
if not self.get('is_return') and not self.get('is_debit_note'):
|
||||
self.validate_qty_is_not_zero()
|
||||
|
||||
if self.get("_action") and self._action != "update_after_submit":
|
||||
|
||||
Reference in New Issue
Block a user