style: Fix formatting

This commit is contained in:
Suraj Shetty 2020-10-22 13:19:54 +05:30 committed by GitHub
parent bd0bc62f12
commit 04378660f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)