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.

0

Many2one on kanban view or href from field [v8]

By
John Doe
on 7/29/16, 8:38 AM 298 views


Hello,

I've created kanban view for my needs and what i want to do is place a link on kanban view which transfer me to task it is related.

Is there a chance to open Many2one field from kanban view like from form view?

Or to create a href which can transfer me to url i've created? I know how to create static link (href) which works on kanban but how can i create this link basing on field.Char?

And maybe there is a chance to add a button which opens chosen view. I did such a button but it opens a clean task form and i dont know how to force it to open task form with chosen ID. I was trying with action context but it doesn't work (lack of knowledge).


0
John Doe
On 8/2/16, 3:46 AM

I found the solution.

Example:

<field name="res_id"/>
<a t-attf-href="/web?&amp;debug=#id={{ record.res_id.value }}&amp;view_type=form&amp;model=project.task&amp;action=188&amp;active_id=99">TASK</a><br/>

{{ record.res_id.value }} - returns the value of res_id.

record.(field_used_in_this_xml).value




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

1 follower(s)

Stats

Asked: 7/29/16, 8:38 AM
Seen: 298 times
Last updated: 8/2/16, 3:46 AM