summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorPierre Rousseau <pro@odoo.com>2019-12-03 09:58:52 +0000
committerVincent Schippefilt <vsc@odoo.com>2019-12-09 12:53:24 +0000
commit46cf65d68e9c13193dff4b563b9b0bbb2199dfc1 (patch)
tree4338abceab39a837283a4075587b9c12d616ba67 /addons/web/static/src/xml/base.xml
parenteef10097aefe04c3a89d5226727a45d540bf8f63 (diff)
[REF] web: rewrite pivot view renderer with OWL
Because the webclient and other higher level components such as the actionManager are not yet rewritten in OWL, we cannot make a complete migration of the controller and the model to a more OWL-ish code. We have rewritten the renderer completely in OWL, it uses more extensively a template and manages its own state and its sub-components. We did not rewrite the controller, however we have made it inherit from `web.ControllerAdapter` which is a thin compatibility layer used when a odoo controller uses a OWL renderer. In the tests, the only changes are that all the events triggered by the test and handled by OWL must be triggered on DOM nodes directly and not on JQuery elements. closes odoo/odoo#39491 Related: odoo/enterprise#7135 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com> Co-authored-by: VincentSchippefilt <vsc@odoo.com> Co-authored-by: pro-odoo <pro@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml26
1 files changed, 0 insertions, 26 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 8854426367c..c3f57baba47 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -469,9 +469,6 @@
</table>
</div>
-<div t-name="PivotView" t-attf-class="o_pivot #{widget.enableLinking ? 'o_enable_linking' : ''}">
- <div class="o_field_selection"/>
-</div>
<t t-name="PivotView.buttons">
<div class="btn-group" role="toolbar" aria-label="Main actions">
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
@@ -491,29 +488,6 @@
<button class="btn btn-secondary fa fa-download o_pivot_download" title="Download xls" aria-label="Download xls"/>
</div>
</t>
-<t t-name="PivotView.GroupBySelection">
- <div class="dropdown-menu o_pivot_field_menu" role="menu">
- <t t-foreach="fields" t-as="field">
- <t t-if="(field[1].type === 'date') || (field[1].type === 'datetime')">
- <div role="menuitem" aria-haspopup="true" class="o_inline_dropdown">
- <a href="#" t-att-data-field="field[0]" t-attf-class="dropdown-item o_pivot_field_selection#{field[2] ? ' disabled' : ''}">
- <t t-esc="field[1].string"/>
- </a>
- <div class="dropdown-menu" role="menu">
- <a role="menuitem" href="#" class="dropdown-item" t-att-data-interval="'day'" t-att-data-field="field[0]">Day</a>
- <a role="menuitem" href="#" class="dropdown-item" t-att-data-interval="'week'" t-att-data-field="field[0]">Week</a>
- <a role="menuitem" href="#" class="dropdown-item" t-att-data-interval="'month'" t-att-data-field="field[0]">Month</a>
- <a role="menuitem" href="#" class="dropdown-item" t-att-data-interval="'quarter'" t-att-data-field="field[0]">Quarter</a>
- <a role="menuitem" href="#" class="dropdown-item" t-att-data-interval="'year'" t-att-data-field="field[0]">Year</a>
- </div>
- </div>
- </t>
- <t t-else="">
- <a href="#" role="menuitem" t-att-data-field="field[0]" t-attf-class="dropdown-item#{field[2] ? ' disabled' : ''}"><t t-esc="field[1].string"/></a>
- </t>
- </t>
- </div>
-</t>
<t t-name="FormSelection">
<div class="btn-group o_selection" aria-atomic="true">