Community mailing list archives

community@mail.odoo.com

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

by
CAYLEY CONSULTING, Omar OUHARI
- 03/29/2016 08:23:19
Hello,

You can do this by using context like that :

<field name="context">{'form_view_ref': your_form_view, 'tree_view_ref': your_tree_view}</field>
I think it will be the same for graph but I am not sur.

Try and tell us.

Omar OUHARI
Consultant IT
Tel : + 212.6.77.55.20.23

2016-03-29 12:58 GMT+01:00 Brahim EL ALLIOUI <belallioui@gmail.com>:

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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe