how to give the lead number for leads in openerp v7.0. An identification number for each lead.
To pytanie dostało ostrzeżenie
4987
Widoki
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
|
0
maj 24
|
3133 | ||
|
|
0
maj 23
|
3047 | ||
|
|
1
paź 22
|
2669 | ||
|
Sales. Advice Lead vs Opportunity
Rozwiązane
|
|
1
maj 20
|
13916 | |
|
|
1
maj 19
|
4944 |
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)