Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4809 Zobrazení

    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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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

happy to help you!

Nejlepší odpověď

try to know my self

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvn 23
3414
1
lis 22
3723
2
čvn 20
3927
2
čvc 18
7445
4
čvc 18
8281