Odoo Help

0

How can I maintain AVAILABLE_STATES in CRM?

By
Zahin
on 6/3/13, 4:20 AM 1,294 views

Installed crm + sales,

Now I have created new module/addons sb_crm.

Now in CRM I want to add new states in AVAILABLE_STATES. Which defined in crm.py

How can I add more state from my module so it updates crm.AVAILABLE_STATES

Please let me know how can I resolve this from my modules sb_crm.

3
saad
On 6/3/13, 6:45 AM

Hi zahin,
You should first import crm module in your sb_crm module:

from openerp.addons.crm import crm

As AVAILABLE_STATES is a list you can write:

crm.AVAILABLE_STATES.append(('new_state','New State'))

Thanks :) It works.

Zahin
on 6/5/13, 8:32 AM
0
Farid Ghanchi
On 9/5/14, 2:08 AM

Thanks saad, One issue here when we installed default openerp CRM, that custom states also seen.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 6/3/13, 4:20 AM
Seen: 1294 times
Last updated: 3/16/15, 8:10 AM