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

How to hide the full row from the tree view.

I can hide the field using attrs tag but I want to hide the full row of the tree view.

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

Hi,

You can hide rows of a tree by adding a domain on the ir.actions.act_window

<record model="ir.actions.act_window" id="id_name">


      <field name="name">name</field>


      <field name="res_model">res.model</field>


      <field name="domain">[('state', '=', 'cancel')]</field>


      <field name="view_mode">tree,form</field>


</record>


Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 21
2868
4
thg 1 18
3475
0
thg 12 23
1361
1
thg 5 23
2877
1
thg 8 21
6518