Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4782 Visualizzazioni

    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
Abbandona
Risposta migliore

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
Abbandona
Autore

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

happy to help you!

Risposta migliore

try to know my self

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 23
3407
1
nov 22
3703
2
giu 20
3902
2
lug 18
7427
4
lug 18
8260