refactor: Explicit feedback to timestamp mismatch errror

Not necessarily a needed improvement but it adds explicitness to the feedback.

fix: text order

fix: type
This commit is contained in:
Mohamud Amin Ali 2024-10-02 13:34:14 +03:00 committed by David
parent c441be55e6
commit e6223b04fc
No known key found for this signature in database
GPG key ID: AB15A6AF1101390D

View file

@ -887,7 +887,7 @@ class Document(BaseDocument):
if cstr(previous.modified) != cstr(self._original_modified):
frappe.msgprint(
_("Error: Document has been modified after you have opened it")
_(f"Error: {self.name} ({self.doctype}) has been modified after you have opened it")
+ (f" ({previous.modified}, {self.modified}). ")
+ _("Please refresh to get the latest document."),
raise_exception=frappe.TimestampMismatchError,