I added tree view to report pos order : and I need to show button in the top of the tree
I added button when selection but i need it always appears without select
the code of add button:
<?xml version="1.0" encoding="utf-8"?>
<templates id="template">
<t t-inherit="web.ListView.selection" t-inherit-mode="extension">
<xpath expr="//div [@class='o_list_selection_box alert alert-info d-inline-flex align-items-center pl-0 px-lg-2 py-0 mb-0 ml-2']"
position="inside">
<button type="button" title="Create ODC Template"
class="btn btn-secondary fa fa-file-excel-o o_button_odc_template"/>
</xpath>
</t>
</templates>
the code to add tree:<record id="point_of_sale.action_report_pos_order_all" model="ir.actions.act_window">
<field name="name">Orders Analysis</field>
<field name="res_model">report.pos.order</field>
<field name="view_mode">tree,graph,pivot</field>
<field name="search_view_id" ref="point_of_sale.view_report_pos_order_search"/>
<field name="context">{'group_by_no_leaf':1,'group_by':[]}</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
No data yet!
</p>
<p>
Create a new POS order
</p>
</field>
</record>
and i did the same thing in sale.report view and i need to show the button in the top of this view without selection odoo15