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

This commit is contained in:
Saif 2018-09-30 20:42:25 +05:00 committed by Rushabh Mehta
parent c1bc8d6066
commit 83c89346c3

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()