Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1387 Lượt xem

i need to pin icon in sale order list view and then i need like when i hover the field pin should get visible..

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 24
1837
5
thg 9 19
12350
1
thg 8 25
630
1
thg 12 24
4198
1
thg 11 22
2949