跳至內容
選單
此問題已被標幟
2 回覆
4811 瀏覽次數

    project_field = fields.Many2one('project.project', 'name', select=True)

task_field = fields.Many2one('project.task', 'task_id', required=True, select=True)


I want that my field "task_field" shows me the project of the selected project in project_field.



頭像
捨棄
最佳答案

Hi wizardz and livenow

In the field definition on the view you could restrict it like:

<field name="project_field"/>
<field name="task_field" domain="[('project_id', '=', project_field)]"/>
頭像
捨棄
作者

It works perfectly, thank you Axel ! You are the best

happy to help you!

最佳答案

try to know my self

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
6月 23
3416
1
11月 22
3724
2
6月 20
3929
2
7月 18
7446
4
7月 18
8285