Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4790 Weergaven

    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
Annuleer
Beste antwoord

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

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

happy to help you!

Beste antwoord

try to know my self

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jun. 23
3407
1
nov. 22
3705
2
jun. 20
3902
2
jul. 18
7429
4
jul. 18
8262