fix: skip SO & DN validation for debit note

(cherry picked from commit e2d16955dd6de197ef621e5f8fb3159f5a9bfaaa)
This commit is contained in:
Gursheen Anand 2024-02-22 16:24:42 +05:30 committed by Mergify
parent 3b96aaeead
commit cd42089e20

View File

@ -269,7 +269,7 @@ class SalesInvoice(SellingController):
super(SalesInvoice, self).validate()
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.set_tax_withholding()