Odoo Help

0

Getting reference from model One2many relationship comodel

By
Renemari Padillo
on 3/23/16, 2:54 AM 415 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.


Cheers,

Rene

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.

Register

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)

Stats

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