跳至內容
選單
此問題已被標幟
1 回覆
4710 瀏覽次數

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?

頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
5月 24
1748
0
4月 24
1433
0
1月 23
1811
0
3月 15
4024
2
3月 15
7342