Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
4804 Prikazi

    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.



Avatar
Opusti
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)]"/>
Avatar
Opusti
Avtor

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

happy to help you!

Best Answer

try to know my self

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jun. 23
3410
1
nov. 22
3717
2
jun. 20
3912
2
jul. 18
7437
4
jul. 18
8273