Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6642 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
bře 25
2340
3
kvě 24
1618
1
dub 24
3071
1
dub 25
2652
0
dub 24
1100