mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 11:44:11 +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)
|
create_bank_account(args)
|
||||||
|
|
||||||
|
|
||||||
def set_global_defaults(args):
|
def set_global_defaults(kwargs):
|
||||||
global_defaults = frappe.get_doc("Global Defaults", "Global Defaults")
|
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(
|
global_defaults.update(
|
||||||
{
|
{
|
||||||
"default_currency": args.get("currency"),
|
"default_currency": kwargs.get("currency"),
|
||||||
"default_company": args.get("company_name"),
|
"default_company": company,
|
||||||
"country": args.get("country"),
|
"country": kwargs.get("country"),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user