Odoo Help


Getting reference from model One2many relationship comodel

Renemari Padillo
on 3/23/16, 2:54 AM 378 views

Would like to ask on how you can get the id of the comodel inside the `ir.actions.act_window`.

See my source code: https://gist.github.com/renesansz/2642b02875475383605e

Currently, I cannot get the `sprint_id.project_id.current_sprint` reference since it's giving me an error of `Uncaught Error: NameError: name 'sprint_id' is not defined`. So what I wanted to happen is that upon opening the project it should add a default filter for the current sprint of the project.

Do I have any alternative for this kind of approach?

Tried doing domain, but still no luck solving the issue.



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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/23/16, 2:54 AM
Seen: 378 times
Last updated: 3/23/16, 2:59 AM