跳至内容
菜单
此问题已终结
2 回复
4789 查看

    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
3407
1
11月 22
3705
2
6月 20
3902
2
7月 18
7429
4
7月 18
8262