コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3817 ビュー

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.

著作者

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)
関連投稿 返信 ビュー 活動
0
5月 24
1857
0
5月 23
1916
1
10月 22
1943
1
5月 20
12256
1
5月 19
3989