mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
set_item_default was referencing a variable company of "company" (#15576)
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user