diff options
| author | Géry Debongnie <ged@odoo.com> | 2018-04-30 15:30:59 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2018-05-02 10:51:45 +0200 |
| commit | e0424b960315b8328f7da96f9d5bc58f2628cd47 (patch) | |
| tree | 2a3168a67bd022c42159c4205c1616776d5ad74b /doc/reference | |
| parent | 2f5e44d40b35ea6790a5e10223273c0cbe900c87 (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 'doc/reference')
| -rw-r--r-- | doc/reference/views.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst index d53ff2b6ce7..d23a0db9da3 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -954,7 +954,9 @@ calendar view are: ``readonly_form_view_id`` view to open in readonly mode ``form_view_id`` - view to open when the user create or edit an event + view to open when the user create or edit an event. Note that if this attribute + is not set, the calendar view will fall back to the id of the form view in the + current action, if any. ``event_open_popup`` If the option 'event_open_popup' is set to true, then the calendar view will open events (or records) in a FormViewDialog. Otherwise, it will open events |
