how to give the lead number for leads in openerp v7.0. An identification number for each lead.
Этот вопрос был отмечен
5168
Представления
Не оставайтесь в стороне – присоединяйтесь к обсуждению!
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
|
0
мая 24
|
3214 | ||
|
|
0
мая 23
|
3131 | ||
|
|
1
окт. 22
|
2727 | ||
|
|
1
мая 20
|
14011 | ||
|
|
1
мая 19
|
5003 |
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)