Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
4783 Vues

    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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

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

happy to help you!

Meilleure réponse

try to know my self

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
juin 23
3407
1
nov. 22
3703
2
juin 20
3902
2
juil. 18
7427
4
juil. 18
8260