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

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
3月 25
2350
3
5月 24
1621
1
4月 24
3078
1
4月 25
2665
0
4月 24
1106