mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 19:55:29 +00:00
set_item_default was referencing a variable company of "company" (#15534)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user