Skip to Content
Menu
This question has been flagged
2 Replies
4845 Rodiniai

    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.



Portretas
Atmesti
Best Answer

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)]"/>
Portretas
Atmesti
Autorius

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

happy to help you!

Best Answer

try to know my self

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
birž. 23
3456
1
lapkr. 22
3757
2
birž. 20
3965
2
liep. 18
7492
4
liep. 18
8337