Rafael Veloso
Rafael Veloso

Reputation: 31

ODOO 10 Field many2many no open view

Is there any way to make one field m2m not open when you click on it? When you click on any m2m field, it opens something like a form with the data, but I need the fields that do not open on "quick view".

I tried to use:

options="{'no_open': True}"

but no luck.

Upvotes: 0

Views: 1338

Answers (2)

Deni Hidayat
Deni Hidayat

Reputation: 11

<tree open="false" options="{'no_create': True, 'no_create_edit':True, 'no_open':True}">
    <field name="nourut" string="No Urut"/>
</tree>

add open="false" inside field many2many tree

Please mark the question as solved.

Upvotes: 1

Charif DZ
Charif DZ

Reputation: 14751

No there is not,if you want to hide some iformation, you can just create an empty embedded form view to hide information.

 <field name="field_name">
     <form>
       <group>
          <!-- show some of fields here or keep it empty-->
       </group>
     </form>
 </field>

and if you really need this you may want to deal with javascript to change the behavior by handling and new option to stop the form from opening.

Upvotes: 2

Related Questions