mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
Merge pull request #49230 from frappe/mergify/bp/version-15-hotfix/pr-49228
fix: company issue in setup wizard (backport #49228)
This commit is contained in:
@@ -480,14 +480,19 @@ def install_defaults(args=None): # nosemgrep
|
||||
create_bank_account(args)
|
||||
|
||||
|
||||
def set_global_defaults(args):
|
||||
def set_global_defaults(kwargs):
|
||||
global_defaults = frappe.get_doc("Global Defaults", "Global Defaults")
|
||||
company = frappe.db.get_value(
|
||||
"Company",
|
||||
{"company_name": kwargs.get("company_name")},
|
||||
"name",
|
||||
)
|
||||
|
||||
global_defaults.update(
|
||||
{
|
||||
"default_currency": args.get("currency"),
|
||||
"default_company": args.get("company_name"),
|
||||
"country": args.get("country"),
|
||||
"default_currency": kwargs.get("currency"),
|
||||
"default_company": company,
|
||||
"country": kwargs.get("country"),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user