Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3767 มุมมอง

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)
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 24
1820
0
พ.ค. 23
1862
1
ต.ค. 22
1904
Sales. Advice Lead vs Opportunity แก้ไขแล้ว
1
พ.ค. 20
12210
1
พ.ค. 19
3938