set_item_default was referencing a variable company of "company" (#15534)
This commit is contained in:
parent
c1bc8d6066
commit
83c89346c3
@ -951,7 +951,7 @@ def set_item_default(item_code, company, fieldname, value):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# no row found, add a new row for the company
|
# 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()
|
d.db_insert()
|
||||||
item.clear_cache()
|
item.clear_cache()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user