please check and share the output of frappe.db.get_value("Account", account, ["account_currency", "company"]) in console using bench console
please check and share the output of frappe.db.get_value("Account", account, ["account_currency", "company"]) in console using bench console