[13.0][fix][base_exception] search only active exception rules
parent
db98fc0c29
commit
d9281728b6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue