Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
6659 Visualizações

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

Avatar
Cancelar
Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
mar. 25
2352
3
mai. 24
1625
1
abr. 24
3081
1
abr. 25
2670
0
abr. 24
1106