diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-05-23 09:42:56 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-05-24 08:25:22 +0200 |
| commit | 38dfe6c51df724af7d90e43c98f73b56dd55ab72 (patch) | |
| tree | d52dc6440b88be3c714f8ed575c931ad33298f47 /addons/board/static/src/xml/board.xml | |
| parent | a1e1b0b9339228b9139c30d062b44b61c72368fe (diff) | |
[FIX] board: properly render with twice same action
Before this rev., the dashboard wasn't rendered correctly when
the same action (same action id) was several times in the
dashboard.
For instance, if the dashboard contained the list and kanban view
of an action, both views were rendered in the same block, leaving
the other one empty. Moreover, (un)foldeing one automatically
(un)folded the other one.
This was because the action id was used to identify each view, but
this id is not unique in the dashboard. We now use a generated id
instead, which is unique.
Diffstat (limited to 'addons/board/static/src/xml/board.xml')
| -rw-r--r-- | addons/board/static/src/xml/board.xml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/board/static/src/xml/board.xml b/addons/board/static/src/xml/board.xml index 1c40084d13c..13453a945f6 100644 --- a/addons/board/static/src/xml/board.xml +++ b/addons/board/static/src/xml/board.xml @@ -18,7 +18,7 @@ </table> </t> <t t-name="DashBoard.action"> - <div t-att-data-id="action.attrs.name" class="oe_action"> + <div t-att-data-id="action.attrs.id" class="oe_action"> <h2 t-attf-class="oe_header #{action.attrs.string ? '' : 'oe_header_empty'}"> <span class="oe_header_txt"> <t t-esc="action.attrs.string"/> </span> <input class = "oe_header_text" type="text"/> @@ -27,8 +27,7 @@ <span class='oe_icon oe_minimize oe_fold' t-if="!action.attrs.fold"></span> <span class='oe_icon oe_maximize oe_fold' t-if="action.attrs.fold"></span> </h2> - - <div t-attf-id="#{element_id}_action_#{column_index}_#{action_index}" class="oe_content" t-att-style="action.attrs.fold ? 'display: none' : null"></div> + <div t-att-class="'oe_content' + (action.attrs.fold ? ' oe_folded' : '')"/> </div> </t> <t t-name="DashBoard.layouts"> |
