[fix] Item name, description should not be overwritten on saving of stock entry
This commit is contained in:
parent
11fc4f85d0
commit
a790ba05f4
@ -112,7 +112,7 @@ class StockEntry(StockController):
|
|||||||
|
|
||||||
for f in ("uom", "stock_uom", "description", "item_name", "expense_account",
|
for f in ("uom", "stock_uom", "description", "item_name", "expense_account",
|
||||||
"cost_center", "conversion_factor"):
|
"cost_center", "conversion_factor"):
|
||||||
if f not in ["expense_account", "cost_center"] or not item.get(f):
|
if f in ["stock_uom", "conversion_factor"] or not item.get(f):
|
||||||
item.set(f, item_details.get(f))
|
item.set(f, item_details.get(f))
|
||||||
|
|
||||||
if self.difference_account:
|
if self.difference_account:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user