[13.0][fix][base_exception] search only active exception rules

pull/2463/head
Jordi Ballester 2021-03-15 16:32:47 +01:00 committed by matiasperalta1
parent db98fc0c29
commit d9281728b6
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class BaseExceptionMethod(models.AbstractModel):
By default, only the rules with the correct model By default, only the rules with the correct model
will be used. will be used.
""" """
return [("model", "=", self._name)] return [("model", "=", self._name), ("active", "=", True)]
def detect_exceptions(self): def detect_exceptions(self):
"""List all exception_ids applied on self """List all exception_ids applied on self