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

 Currently, when creating a task the default for the field "assigned to" is the person adding the task.

I would like to have as a default the project manager instead.

How would I do that?


TIA&RGDS

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

the field definition in the task form view is :

<field name="user_id" options="{&quot;no_open&quot;: True}" on_change="onchange_user_id(user_id, context)" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'project.group_project_user']}"/>

Is the part defining the default value is: "on_change="onchange_user_id(user_id, context)" ?

How would I call the project manager's user_id?

 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 24
1673
2
thg 10 23
1874
Project and Tasks Đã xử lý
1
thg 7 23
2042
2
thg 6 20
5486
0
thg 8 15
4045