[minor] fixes in test cases and added the test case for multiple uom in selling

This commit is contained in:
mbauskar
2017-04-10 19:16:07 +05:30
committed by Nabin Hait
parent 287fe81329
commit 9e9d242a24
5 changed files with 39 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ class SellingController(StockController):
# set contact and address details for customer, if they are not mentioned
self.set_missing_lead_customer_details()
self.set_price_list_and_item_details(for_validate)
self.set_price_list_and_item_details(for_validate=for_validate)
def set_missing_lead_customer_details(self):
if getattr(self, "customer", None):
@@ -60,7 +60,7 @@ class SellingController(StockController):
posting_date=self.get('transaction_date') or self.get('posting_date'),
company=self.company))
def set_price_list_and_item_details(self, for_validate):
def set_price_list_and_item_details(self, for_validate=False):
self.set_price_list_currency("Selling")
self.set_missing_item_details(for_validate=for_validate)