Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3637 Vizualizări

how to give the lead number for leads in openerp v7.0. An identification number for each lead.

Imagine profil
Abandonează
Autor

At last i found the solution.. We can give sequence number. Settings-> Technical -> Sequence and identifier. -> Create a new sequence for lead.

Autor

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)

    # context: no_log, because subtype already handle this
    create_context = dict(context, mail_create_nolog=True)
    return super(crm_lead, self).create(cr, uid, vals, context=create_context)
Related Posts Răspunsuri Vizualizări Activitate
0
mai 24
1722
0
mai 23
1756
1
oct. 22
1841
1
mai 20
12097
1
mai 19
3852