Merge pull request #40668 from frappe/mergify/bp/version-14-hotfix/pr-40634

refactor: better pop up message for Internal Customer validation (backport #40634)
This commit is contained in:
ruthra kumar
2024-03-29 13:50:35 +05:30
committed by GitHub

View File

@@ -1817,9 +1817,9 @@ def validate_inter_company_party(doctype, party, company, inter_company_referenc
companies = [d.company for d in companies]
if not company in companies:
frappe.throw(
_("{0} not allowed to transact with {1}. Please change the Company.").format(
partytype, company
)
_(
"{0} not allowed to transact with {1}. Please change the Company or add the Company in the 'Allowed To Transact With'-Section in the Customer record."
).format(_(partytype), company)
)