fix: skip SO & DN validation for debit note
This commit is contained in:
parent
5a3b133d65
commit
e2d16955dd
@ -270,7 +270,7 @@ class SalesInvoice(SellingController):
|
|||||||
super(SalesInvoice, self).validate()
|
super(SalesInvoice, self).validate()
|
||||||
self.validate_auto_set_posting_time()
|
self.validate_auto_set_posting_time()
|
||||||
|
|
||||||
if not self.is_pos:
|
if not (self.is_pos or self.is_debit_note):
|
||||||
self.so_dn_required()
|
self.so_dn_required()
|
||||||
|
|
||||||
self.set_tax_withholding()
|
self.set_tax_withholding()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user