fix: translation syntax and style fixes
This commit is contained in:
parent
9dd0304773
commit
0fdb7953bb
2 changed files with 3 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ def restore(name, alert=True):
|
|||
deleted = frappe.get_doc('Deleted Document', name)
|
||||
|
||||
if deleted.restored:
|
||||
frappe.throw(_("Document {0} Already Restored".format(name)), exc=frappe.DocumentAlreadyRestored)
|
||||
frappe.throw(_("Document {0} Already Restored").format(name), exc=frappe.DocumentAlreadyRestored)
|
||||
|
||||
doc = frappe.get_doc(json.loads(deleted.data))
|
||||
|
||||
|
|
|
|||
|
|
@ -7,9 +7,8 @@ frappe.listview_settings["Deleted Document"] = {
|
|||
return doc.name;
|
||||
});
|
||||
frappe.call({
|
||||
method:
|
||||
"frappe.core.doctype.deleted_document.deleted_document.bulk_restore",
|
||||
args: { docnames: docnames },
|
||||
method: "frappe.core.doctype.deleted_document.deleted_document.bulk_restore",
|
||||
args: { "docnames": docnames },
|
||||
callback: function (r) {
|
||||
if (r.message) {
|
||||
let num = r.message.length;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue