mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_refresher: Charge t-inherit-mode extension views just after the main
By doing this, the extension view is charged just after the main, so if some other views are using this other, to make a primary one, like project is doing for project.task control_panel, the refresher will continue be shown.
This commit is contained in:
@@ -46,26 +46,4 @@
|
||||
</div>
|
||||
</xpath>
|
||||
</t>
|
||||
<t
|
||||
t-name="web_refresher.FormControlPanel"
|
||||
t-inherit="web.FormControlPanel"
|
||||
t-inherit-mode="extension"
|
||||
owl="1"
|
||||
>
|
||||
<xpath expr="//div[hasclass('o_cp_pager')]" position="before">
|
||||
<div class="oe_cp_refresher" role="search" t-ref="refresher">
|
||||
<Refresher t-props="refresherProps" />
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('o_cp_bottom_right')]" position="before">
|
||||
<div
|
||||
t-if="!display['bottom-right']"
|
||||
class="o_cp_bottom_right d-flex flex-row-reverse"
|
||||
>
|
||||
<div class="oe_cp_refresher" role="search" t-ref="refresher">
|
||||
<Refresher refresherReport="true" />
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
27
web_refresher/static/src/xml/form_control_panel.xml
Normal file
27
web_refresher/static/src/xml/form_control_panel.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!-- Copyright 2024 Tecnativa - Carlos Roca
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<template>
|
||||
<t
|
||||
t-name="web_refresher.FormControlPanel"
|
||||
t-inherit="web.FormControlPanel"
|
||||
t-inherit-mode="extension"
|
||||
owl="1"
|
||||
>
|
||||
<xpath expr="//div[hasclass('o_cp_pager')]" position="before">
|
||||
<div class="oe_cp_refresher" role="search" t-ref="refresher">
|
||||
<Refresher t-props="refresherProps" />
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('o_cp_bottom_right')]" position="before">
|
||||
<div
|
||||
t-if="!display['bottom-right']"
|
||||
class="o_cp_bottom_right d-flex flex-row-reverse"
|
||||
>
|
||||
<div class="oe_cp_refresher" role="search" t-ref="refresher">
|
||||
<Refresher refresherReport="true" />
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</t>
|
||||
</template>
|
||||
Reference in New Issue
Block a user