Odoo Help


lead number in Openerp v7.0.

on 7/3/13, 5:20 AM 1,239 views

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

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

on 7/6/13, 2:41 AM

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)
on 7/6/13, 2:46 AM

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.


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)


Asked: 7/3/13, 5:20 AM
Seen: 1239 times
Last updated: 3/16/15, 8:10 AM