how to give the lead number for leads in openerp v7.0. An identification number for each lead.
Esta pregunta ha sido marcada
4959
Vistas
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
0
may 24
|
3111 | ||
|
|
0
may 23
|
2989 | ||
|
|
1
oct 22
|
2661 | ||
|
Sales. Advice Lead vs Opportunity
Resuelto
|
|
1
may 20
|
13878 | |
|
|
1
may 19
|
4896 |
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)