Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4807 Lượt xem

    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.



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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)]"/>
Ảnh đại diện
Huỷ bỏ
Tác giả

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

happy to help you!

Câu trả lời hay nhất

try to know my self

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 23
3413
1
thg 11 22
3722
Cannot create task Đã xử lý
2
thg 6 20
3926
2
thg 7 18
7443
4
thg 7 18
8281