How I add a button on header of tree view ?
Thanks in advance
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How I add a button on header of tree view ?
Thanks in advance
Hello
Try with below code:
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-extend="ListView.buttons">
<t t-jquery="button.oe_list_add" t-operation="after">
<t t-if="widget.model == 'yourmodelname'">
<button
class="oe_button oe_highlight"
type="button">My Button</button>
</t>
</t>
</t>
</templates>
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
Selecting items for one2many relation
Diselesaikan
|
|
2
Des 22
|
13943 | |
|
1
Nov 21
|
4090 | ||
|
0
Jan 21
|
1630 | ||
|
8
Mei 20
|
6991 | ||
|
0
Des 23
|
2523 |