fix: missing assign item's expense_account

As in dict object "ret", missing assign item's expense_account will cause it then fetches the default stock_adjustment_account in 'Company'.
This commit is contained in:
Andy Zhu 2020-02-26 10:49:48 +13:00 committed by GitHub
parent 0ebace5da2
commit 75d9d79fac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -757,7 +757,8 @@ class StockEntry(StockController):
'serial_no' : '',
'has_serial_no' : item.has_serial_no,
'has_batch_no' : item.has_batch_no,
'sample_quantity' : item.sample_quantity
'sample_quantity' : item.sample_quantity,
'expense_account' : item.expense_account
})
# update uom