summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2018-05-11 15:05:18 +0200
committerLucas Perais (lpe) <lpe@odoo.com>2018-05-28 17:25:51 +0200
commit9654f6b8e0313553a555a8c9cb8349ca1c412ca3 (patch)
tree6aebe64ce160e6720dcc4872b7bdb40326d2cdf1 /addons/web/static/src/js/views/basic/basic_controller.js
parenta89e46fdc0bd7e3cf2222dc221ab8e35fc7dca03 (diff)
[FIX] web: o2m editable decorated, paged, ordered supports adds/cancel
Have a decorated (conditional on field) editable list, with a default_order. Have more records than the pager allows. Add an item, and hit escape to cancel addition. Before this commit, the cancellation crashed because the first record on the other page was trying to evaluate the decoration for its row, which is wrong in the first place. This was because creating a record increases the limit of the list, to be able to see the record being created. At cancellation though, that limit was never decreased. After this commit, the whole flow happens without problem. OPW 1844495 closes #24682
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions