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

Hello,

In task i have two priority : Without or High

and in incident i have tree priority : Low (Without) / Normal / High

I want more priority but it is not provided in Odoo we can edit priority

How can I do this?

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

you can expand the 'priority' fields value in the task object.

currently the field look like :

priority = fields.Selection([('0','Normal'), ('1','High') ], default='0', index=True)

now, if you want to add more option for selection, do something like in the task object:

priority = fields.Selection([('0','Low'), ('1','Normal'), ('2','High') ], default='0', index=True)

note: if you doing something like, you need to change the code related to this on everywhere.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 5 24
1759
0
thg 4 24
1444
0
thg 1 23
1821
0
thg 3 15
4034
2
thg 3 15
7360