Community mailing list archives

community@mail.odoo.com

How to assign the values ​​of the field views in actions ?

by
e-acta, Brahim EL ALLIOUI
- 03/29/2016 07:53:29

Hi,

How to assign the values ​​of the field views in actions ?

Example : 
<record id="eacta_action_mrp_farm_operation" model="ir.actions.act_window">
<field name="name">Interventions</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">eacta.data.mrp.farm.operation</field>
<field name="view_mode">tree,form,graph</field>
<field name="limit">10</field>
<field name="search_view_id" ref="eacta_search_view_mrp_farm_operation"/>

<field name="views" >[
['eacta_tree_view_mrp_farm_operation', tree],
['eacta_form_view_mrp_farm_operation', form],
['eacta_graph_view_mrp_farm_operation', graph]
]
</field>
Thanks,


Brahim EL ALLIOUI
General Manager
Skype : belallioui
Tel : +212535749410
Mobile : +212661940077