mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 01:34:10 +00:00
fix: company issue in setup wizard
(cherry picked from commit 1fb0d1460a)
This commit is contained in:
committed by
Mergify
parent
dac8dc6b8a
commit
cea4b50bbc
@@ -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