diff options
| author | Denis Ledoux <dle@odoo.com> | 2015-12-09 16:31:06 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-12-09 16:39:24 +0100 |
| commit | 02174099e2d8b6727751a06527e9ac6c057a0b2f (patch) | |
| tree | 03751f09a503e886c22a727fb4e12d58f063b3bd /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js | |
| parent | 97b5e52a1a25e61d15d4e59b1a1720fe60e98fc6 (diff) | |
[FIX] gamification: goal definition for models without inherits
When attempting to define a goal
using a model that does not have any `inherits`
- which happens most the time-,
it was not possible to choose the
`Field to Sum` and the `Date Field`,
due to the domain set in the view
which is no longer working in 9.0.
The domain is no longer working because:
- The onchange result for a one2many for which
the value is set to `[(6, 0, [])]` is now `[]`,
while, in 8.0, the tuple with the command `6` and the empty
list was preserved
- the empty list `model_inherited_model_ids` is considered as `True` by py.js,
and therefore it fallbacks to `model_inherited_model_ids[0]`, but
as this is an empty list, it crashes.
The solution proposed in this revision solves the issue, while
making the domain applied on these fields less fragile.
opw-658892
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions
