Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How to open the form view from a tree view with field_parent (like Chart of Accounts) ?

By
Yves Hoyos
on 10/15/13, 6:35 AM 1,232 views

I'm trying to make an action to open a form view from a tree, with children.

By looking into the code, I found that I have to use an action with key2="tree_but_open". So I try the following action:

<act_window
        id="my_action"
        name="My Action"
        res_model="my.object"
        src_model="my.object"
        res_id="active_id"
        view_type="form"
        view_mode="form,tree"
        key2="tree_but_open"/>

I also found the "Action creation - Linking events to action" documentation, but I don't know how to use it in my case.

Can you help me ?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 10/15/13, 6:35 AM
Seen: 1232 times
Last updated: 3/16/15, 8:10 AM