Hello,
I created a tree view to see all data of model "mrp.workcenter.productivity" and a menu item to open this tree view.
I need when i click on a line, to open the form of the concerned "mrp.workorder" (field workorder_id in mrp.workcenter.productivity)
Is anybody knows how to do that ?
Here is my xml code for menu item and tree view :
<odoo>
<record model="ir.ui.view" id="s_mrp_workcenter_productivity_tree_complet">
<field name="name">Safar.s_mrp_workcenter_productivity_tree_complet</field>
<field name="model">mrp.workcenter.productivity</field>
<field name="arch" type="xml">
<tree create="false">
<field name="workorder_id"/>
<field name="duration" widget="float_time" sum="Total duration"/>
<field name="date_start"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="safar_tache_operateur_action">
<field name="name">Tâches opérateurs</field>
<field name="res_model">mrp.workcenter.productivity</field>
<field name="view_mode">tree</field>
</record>
<menuitem id="safar_tache_operateur_action_menu" name="Tâches opérateurs" parent="mrp.menu_mrp_manufacturing" action="safar_tache_operateur_action" sequence="11"/>
</odoo>