diff --git a/accounts/page/accounts_browser/accounts_browser.py b/accounts/page/accounts_browser/accounts_browser.py index 0466223725..68f835733d 100644 --- a/accounts/page/accounts_browser/accounts_browser.py +++ b/accounts/page/accounts_browser/accounts_browser.py @@ -18,7 +18,7 @@ def get_companies(): # if match == company is specified and companies are specified in user defaults if match: - return webnotes.defaults.get_user_defaults("company") + return webnotes.defaults.get_user_default_as_list("company") else: return [r[0] for r in webnotes.conn.sql("""select name from tabCompany where docstatus!=2""")] diff --git a/home/page/desktop/desktop.js b/home/page/desktop/desktop.js index df7d23eb67..c298b68218 100644 --- a/home/page/desktop/desktop.js +++ b/home/page/desktop/desktop.js @@ -9,7 +9,7 @@ erpnext.desktop.refresh = function() { $("#icon-grid .case-wrapper").each(function(i, e) { new_order.push($(this).attr("data-name")); }); - wn.user.set_default("_desktop_items", new_order); + wn.defaults.set_default("_desktop_items", new_order); } }); }