chore: hyperlinks in cannot cancel message

This commit is contained in:
Saqib Ansari
2020-03-28 20:11:26 +05:30
parent dbeb77e745
commit b345fe0fe9
2 changed files with 2 additions and 2 deletions

View File

@@ -745,7 +745,7 @@ class BuyingController(StockController):
asset.supplier = None
if asset.docstatus == 1 and delete_asset:
frappe.throw(_('Cannot cancel this document as it is linked with submitted asset {0}.\
Please cancel the it to continue.').format(asset.name))
Please cancel the it to continue.').format(frappe.utils.get_link_to_form('Asset', asset.name)))
asset.flags.ignore_validate_update_after_submit = True
asset.flags.ignore_mandatory = True