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

Getting reference from model One2many relationship comodel

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

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: 3/23/16, 2:54 AM
Seen: 307 times
Last updated: 3/23/16, 2:59 AM