[fix] [minor] added for validate in buying controller

This commit is contained in:
Akhilesh Darjee 2013-10-14 13:41:55 +05:30
parent 7837827e30
commit 74ec868968

View File

@ -30,7 +30,7 @@ class BuyingController(StockController):
super(BuyingController, self).set_missing_values(for_validate)
self.set_supplier_from_item_default()
self.set_price_list_currency("Buying")
self.set_price_list_currency("Buying", for_validate)
# set contact and address details for supplier, if they are not mentioned
if self.doc.supplier and not (self.doc.contact_person and self.doc.supplier_address):