fix: add missing translation function for company default error message

This commit is contained in:
elshafei-developer
2026-01-05 10:49:35 +00:00
parent 72aa27a87f
commit 0950e67eea

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
)
)