set_item_default was referencing a variable company of "company" (#15576)

This commit is contained in:
Saif 2018-10-05 11:24:03 +05:00 committed by Rushabh Mehta
parent be6e426fe0
commit 00a16a9337

View File

@ -951,7 +951,7 @@ def set_item_default(item_code, company, fieldname, value):
return
# no row found, add a new row for the company
d = item.append('item_defaults', {fieldname: value, company: company})
d = item.append('item_defaults', {fieldname: value, "company": company})
d.db_insert()
item.clear_cache()