Merge pull request #56479 from mihir-kandoi/messages/crm

chore: rewrite user-facing messages in crm module
This commit is contained in:
Mihir Kandoi
2026-06-25 18:47:25 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ class AppointmentBookingSettings(Document):
err_msg = _("<b>From Time</b> cannot be later than <b>To Time</b> for {0}").format(
record.day_of_week
)
frappe.throw(_(err_msg))
frappe.throw(err_msg)
def duration_is_divisible(self, from_time, to_time):
timedelta = to_time - from_time

View File

@@ -49,7 +49,7 @@ class CRMSettings(Document):
if self.enable_frappe_crm_data_synchronization and not self.allowed_users:
frappe.throw(
_(
"Please add atleast one user on Allowed Users to allow Data Synchronization from Frappe CRM site."
"Please add at least one user on Allowed Users to allow Data Synchronization from Frappe CRM site."
)
)