Update stock_entry.py

fixed for null expense account
This commit is contained in:
bobzz-zone 2015-08-05 11:28:11 +07:00
parent 329afe88f9
commit ff04bf6346

View File

@ -100,7 +100,7 @@ class StockEntry(StockController):
if f in ["stock_uom", "conversion_factor"] or not item.get(f):
item.set(f, item_details.get(f))
if self.difference_account:
if self.difference_account and item.expense_account=="":
item.expense_account = self.difference_account
if not item.transfer_qty: