diff options
| author | Xavier Morel <xmo@odoo.com> | 2019-12-16 12:06:20 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-01-06 10:35:52 +0000 |
| commit | a2a1e294d7485ca839bb409129c860ad91c0b334 (patch) | |
| tree | 959ecd573eebf961c68d47e8ee12f482a1ecfeb8 /addons/web | |
| parent | b0d690ee7c1d64eae1e6f2a87be6d6b0a8dc8033 (diff) | |
[IMP] core: deprecate returning domains from onchanges
* add a runtime warning when an onchange method contains the string
'domain'
* add a lint test to forbid the string 'domain' in onchange methods,
this is easy to defeat (e.g. `dict(domain=...)`) and can have false
positives (literal `'domain'` strings for reasons other than an
onchange result) but overall it seems to work nicely
* implemented as a non-pylint test as pylint takes ages to run. While
at it, remove the long-disabled and long-useless
PEP3110TokenChecker (checks for `except Exception, a` which is a
syntax error in P3)
Task 2115472
closes odoo/odoo#41918
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web')
0 files changed, 0 insertions, 0 deletions
