how to give the lead number for leads in openerp v7.0. An identification number for each lead.
Bu soru işaretlendi
5016
Görünümler
how to give the lead number for leads in openerp v7.0. An identification number for each lead.
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
0
May 24
|
3147 | |||
|
0
May 23
|
3057 | |||
|
1
Eki 22
|
2684 | |||
|
1
May 20
|
13937 | |||
|
1
May 19
|
4954 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
At last i found the solution.. We can give sequence number. Settings-> Technical -> Sequence and identifier. -> Create a new sequence for lead.
Then i make editing in the crm_lead.py file. function create edited like this. def create(self, cr, uid, vals, context=None): if vals.get('x_name_lead','/')=='/': vals['x_name_lead'] = self.pool.get('ir.sequence').get(cr, uid, 'crm.lead') or '/' return super(crm_lead, self).create(cr, uid, vals, context=context)