i need to pin icon in sale order list view and then i need like when i hover the field pin should get visible..
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
Hi,
To add a pin icon to headers of a list view, use the following code snippet in your Odoo QWeb template:
<t t-name="CustomModule.RowListView"
t-inherit="web.ListRenderer" t-inherit-mode="extension"
owl="1">
<xpath expr="//div[hasclass('o_list_renderer')]/table/thead/tr/t/th/t/div/span"
position="after">
<i class="fa fa-thumb-tack"
/>
</xpath>
</t>
To display the icon when hovering over the <th>, apply the following CSS:
th:hover .fa-thumb-tack {
display: inline-block;
}
.fa-thumb-tack {
display: none;
}
You can refer to the following module to pin records in the tree/list view:
https://apps.odoo.com/apps/modules/17.0/list_tree_pin_records
Hope it helps
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
0
čvc 24
|
1723 | ||
|
5
zář 19
|
12236 | ||
|
1
srp 25
|
424 | ||
|
1
pro 24
|
4112 | ||
|
1
lis 22
|
2829 |