Skip to Content
Menu
This question has been flagged
1 Atsakyti
3251 Rodiniai

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.

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
liep. 21
2785
4
saus. 18
3384
0
gruod. 23
1280
1
geg. 23
2778
1
rugp. 21
6423