Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6676 มุมมอง

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......

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Create Mutlipile Pipelines แก้ไขแล้ว
2
มี.ค. 25
2393
3
พ.ค. 24
1632
1
เม.ย. 24
3123
1
เม.ย. 25
2686
0
เม.ย. 24
1130