diff --git a/base_exception/models/base_exception.py b/base_exception/models/base_exception.py index 6f344cfb2..10afb15e1 100644 --- a/base_exception/models/base_exception.py +++ b/base_exception/models/base_exception.py @@ -80,13 +80,6 @@ class ExceptionRule(models.Model): self.ensure_one() return safe_eval(self.domain) - @api.onchange('exception_type',) - def onchange_exception_type(self): - if self.exception_type == 'by_domain': - self.code = False - elif self.exception_type == 'by_py_code': - self.domain = False - class BaseException(models.AbstractModel): _name = 'base.exception'