Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3443 Prikazi

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

Avatar
Opusti
Avtor

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

Avtor

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 Odgovori Prikazi Aktivnost
0
maj 24
1572
0
maj 23
1618
1
okt. 22
1741
1
maj 20
11927
1
maj 19
3741