Hi,

This may be a obvious question but I can't find any example within the current 
modules for the functionality I want implement:

In the projectmanagement module, I would like to open the project details on a 
double click on a project in the tree structure. By default, a list of 
associated tasks is shown.

I've been able to show the project detail view on a double click but an empty 
edit form is shown. Apparently, the context (of the selected project in the 
tree) is not passed to the detail view.

My view xml like something like this:

<record model="ir.actions.act_window" id="dblc_proj">
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field 
name="res_model">project.project</field>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field name="name">Project</field>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field name="view_type">form</field>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field name="view_mode">form</field>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field name="domain">&#91;&#40;'id', 
'=', &#91;active_id&#93;&#41;&#93;</field>
&nbsp; &nbsp;&nbsp; &nbsp;</record>
&nbsp; &nbsp;&nbsp; &nbsp;<record model="ir.values" id="ir_project_open">
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field name="key2" eval=" 
'tree_but_open'" />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field name="model" 
eval="'project.project'" />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field name="name">View project</field>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field name="value" 
eval="'ir.actions.act_window,'+str&#40;dblc_proj&#41;" />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field name="object" eval="True" />
&nbsp; &nbsp;&nbsp; &nbsp;</record>


Any ideas?

Thx
Frederik





_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to