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

i installed odoo 12

i need to add two more priority stars in the Pipeline form of the CRM module

by default there is three priority stars; and need to add two more

How can i add this 

Please help me to solve this......

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

Do the following,

1. Create a new custom module if you dont have already
2. Inherit crm.lead 
3. Add the following code

class CrmLead(models.Model):
   _inherit = "crm.lead" ​   ​    ​   ​
priority = fields.Selection(selection_add=[('4', 'Fourth'), ('5', 'Fifth')])

4. in selection_add for Fourth and Fifth replace whatever text you want.

5. Install /  upgrade custom module. It it add new priority start.

A good article to read

Extend Selection Field

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 25
2357
3
thg 5 24
1626
1
thg 4 24
3085
1
thg 4 25
2672
0
thg 4 24
1107