Don't validate delivery note and sales order required for the POS invoice

This commit is contained in:
Rohit Waghchaure 2017-06-23 12:56:12 +05:30
parent 2cb598f644
commit 8326028d33

View File

@ -54,7 +54,10 @@ class SalesInvoice(SellingController):
def validate(self):
super(SalesInvoice, self).validate()
self.validate_auto_set_posting_time()
self.so_dn_required()
if not self.is_pos:
self.so_dn_required()
self.validate_proj_cust()
self.validate_with_previous_doc()
self.validate_uom_is_integer("stock_uom", "stock_qty")