stock qty not changed if item change

This commit is contained in:
Rohit Waghchaure 2017-06-28 15:35:53 +05:30
parent ac3ad0810a
commit 5b7028c7bb

View File

@ -128,6 +128,7 @@ class BOM(WebsiteGenerator):
'conversion_factor' : 1,
'bom_no' : args['bom_no'],
'rate' : rate,
'stock_qty' : args.get("qty") or args.get("stock_qty") or 1,
'base_rate' : rate if self.company_currency() == self.currency else rate * self.conversion_rate
}
return ret_item