Members mailing list archives

Re: view_type tree AND open a form view when clicking on a record

Serpent Consulting Services
- 07/12/2015 07:15:07

It would be easy:

See the existing code in product/product_view.xml
<record id="ir_product_category_open" model="ir.values">
            <field eval="'tree_but_open'" name="key2"/>
            <field eval="'product.category'" name="model"/>
            <field name="name">Products by Categories</field>
            <field eval="'ir.actions.act_window,%d'%product_normal_action_tree" name="value"/>

-----------------Should be, for you-----------
 <field eval="'ir.actions.act_window,%d'%ACTION_TO_OPEN_FORM" name="value"/>

So, you simply need to create an action which will open the view as needed.


On Mon, Dec 7, 2015 at 1:23 AM, GAY Arnaud - LuxProject <> wrote:
Hi all,

I try to understand how to open a from when clicking on a tree view_type.

We have some examples on product category tree view (click open product 
view), or account.analytic.account (cick open account analytic lines).

So, no trouble to create beautifull tree, but nothink hapened when click 
on record.

Somes ideas ?



Arnaud GAY
LuxProject SA
+33 7 82 93 84 00

Post to:

The Splendid journey of 2 years in Numbers
Jay Vora
Managing Director

Direct: +91-9879354457
Office: +91-9033472982
Skype: jaynvora
Twitter : jaynvora
Visit our website :
Please consider the environment before printing this email