summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2018-04-30 15:30:59 +0200
committerGéry Debongnie <ged@odoo.com>2018-05-02 10:51:45 +0200
commite0424b960315b8328f7da96f9d5bc58f2628cd47 (patch)
tree2a3168a67bd022c42159c4205c1616776d5ad74b /addons/web/static/src/js/views/basic/basic_model.js
parent2f5e44d40b35ea6790a5e10223273c0cbe900c87 (diff)
[FIX] web: fix form_view_id attribute in calendar view.
The way the calendar view selected its form view was broken for two reasons: - any value given in the form_view_id attribute was kept as string, which means that the string value would be sent to the server, and this is not good. - if no value was set, the calendar view then simply did a do_action with the form view id set to false, which means that the default form view is used. This is mostly ok, except when we are in the context of an action with a form view which is not the default one. In that case, we clearly prefer the form view from the action. For example, before this commit, the form view in the timesheet application (community) is not the same as the default form view on account.analytic.line. Note that this commit also adds a small tweak to the mock server to better simulate errors like the web client does (in session.js).
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions