Browse Source

Remove onchange on exception_type

No more empty fields after changing type.
pull/1410/head
Hpar 6 years ago
committed by David Beal
parent
commit
252ee43620
  1. 7
      base_exception/models/base_exception.py

7
base_exception/models/base_exception.py

@ -80,13 +80,6 @@ class ExceptionRule(models.Model):
self.ensure_one() self.ensure_one()
return safe_eval(self.domain) 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): class BaseException(models.AbstractModel):
_name = 'base.exception' _name = 'base.exception'

Loading…
Cancel
Save