[sales order] [validate] validate item details specifically when submitting

This commit is contained in:
Anand Doshi 2013-05-23 12:59:12 +05:30
parent 455c245dce
commit aabe11b689

View File

@ -217,7 +217,10 @@ class DocType(SellingController):
self.validate_proj_cust()
self.validate_po()
#self.validate_reference_value()
self.validate_for_items()
if self.doc.docstatus == 1:
self.validate_for_items()
sales_com_obj = get_obj(dt = 'Sales Common')
sales_com_obj.check_active_sales_items(self)
sales_com_obj.check_conversion_rate(self)