Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
4800 Tampilan

    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
Buang
Jawaban Terbai

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
Buang
Penulis

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

happy to help you!

Jawaban Terbai

try to know my self

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jun 23
3410
1
Nov 22
3713
2
Jun 20
3909
2
Jul 18
7435
4
Jul 18
8272