To create a link in view of one object to another

Asked by KAKA1.2

Hi,
I need to create a link to object2 form view from the my object1 form view. Either have to create a button on clicking which it takes to the object 2 view. Or have to create a Link action in the Right side menu. In which way can I do it and How?? Please help me!

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Vinay Rana (OpenERP)
Solved:
Last query:
Last reply:
Revision history for this message
Best Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello Satheesh,

For creating link you need to use '<act_window ..' tag by following way:

<act_window
            domain="[('account_id', '=', active_id)]"
            id="act_account_acount_move_line_open"
            name="Entries"
            context="{'account_id': active_id}"
            res_model="account.move.line"
            src_model="account.account"/>

There are so many example code exist in tiny code.

Thanks.

Revision history for this message
KAKA1.2 (satheesh) said :
#2

But no action Link get created in the View. what should I do to get that?

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#3

Hello Satheesh,

Please update your database completely from server terminal using following command:
./openerp-server.py -u all -d <database-name>.

Thanks.

Revision history for this message
KAKA1.2 (satheesh) said :
#4

Thanks vra (openerp), that solved my question.