style: Fix formatting
This commit is contained in:
parent
bd0bc62f12
commit
04378660f8
1 changed files with 3 additions and 2 deletions
|
|
@ -49,8 +49,9 @@ class Report(Document):
|
|||
self.export_doc()
|
||||
|
||||
def on_trash(self):
|
||||
if (self.is_standard == 'Yes' and
|
||||
not cint(getattr(frappe.local.conf, 'developer_mode',0)) and not frappe.flags.in_patch):
|
||||
if (self.is_standard == 'Yes'
|
||||
and not cint(getattr(frappe.local.conf, 'developer_mode', 0))
|
||||
and not frappe.flags.in_patch):
|
||||
frappe.throw(_("You are not allowed to delete Standard Report"))
|
||||
delete_custom_role('report', self.name)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue