Passa al contenuto
Menu
La domanda è stata contrassegnata
1 Rispondi
3296 Visualizzazioni

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.

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 21
2866
4
gen 18
3473
0
dic 23
1360
1
mag 23
2871
1
ago 21
6514