Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6626 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
mar 25
2330
3
maj 24
1610
1
kwi 24
3064
1
kwi 25
2646
0
kwi 24
1096