how to give the lead number for leads in openerp v7.0. An identification number for each lead.
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
            
                4025
                
                    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  | 2083 | ||
|  | 0 maj 23  | 2185 | ||
|  | 1 paź 22  | 2107 | ||
| 
            
                Sales. Advice Lead vs Opportunity
            
            
                    Rozwiązane
            
         |  | 1 maj 20  | 12548 | |
|  | 1 maj 19  | 4189 | 
 
                        
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)