how to give the lead number for leads in openerp v7.0. An identification number for each lead.
Pertanyaan ini telah diberikan tanda
4979
Tampilan
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
0
Mei 24
|
3130 | ||
|
|
0
Mei 23
|
3038 | ||
|
|
1
Okt 22
|
2667 | ||
|
Sales. Advice Lead vs Opportunity
Diselesaikan
|
|
1
Mei 20
|
13913 | |
|
|
1
Mei 19
|
4941 |
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)