Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4584 มุมมอง

everyone.

Is it possible to add custom data in to the session context?

See my sample [code](https://gist.github.com/renesansz/2642b02875475383605e) for reference.

What I wanted to happen is that, I wanted to access the instance of the current project, so that I could access its other properties.

By default, Odoo always appends the id of the current/selected project through `active_id` and then you can directly access it in to the XML view. However, aside from the current project id, I wanted to get its other properties (`current_sprint` in my sample code) and put it in to the context of `<record id="project.act_project_project_2_project_task_all" model="ir.actions.act_window">`. Because what I wanted to happen is that I wanted to filter the tasks automatically by `current_sprint`.

Are there any other ways that I could access the current project instance?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 25
1039
1
ม.ค. 25
1222
1
พ.ย. 24
1296
1
พ.ย. 24
1927
2
ต.ค. 24
1500