Merge pull request #51507 from elshafei-developer/fix-add-missing-translate-function

fix: add missing translation function for company default error message
This commit is contained in:
rohitwaghchaure
2026-01-08 19:33:03 +05:30
committed by GitHub

View File

@@ -1146,7 +1146,7 @@ def get_company_default(company, fieldname, ignore_validation=False):
if not ignore_validation and not value:
throw(
_("Please set default {0} in Company {1}").format(
frappe.get_meta("Company").get_label(fieldname), company
_(frappe.get_meta("Company").get_label(fieldname)), company
)
)