chore: Linting Issues

This commit is contained in:
Deepesh Garg 2023-06-25 16:24:22 +05:30
parent bcff4b0e5a
commit 63b126967e

View File

@ -8,13 +8,12 @@ from frappe.model.document import Document
class AccountingDimensionFilter(Document):
def before_save(self):
# If restriction is not applied on values, then remove all the dimensions and set allow_or_restrict to Restrict
if not self.apply_restriction_on_values:
self.allow_or_restrict = "Restrict"
self.set("dimensions", [])
def validate(self):
self.validate_applicable_accounts()