تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3693 أدوات العرض

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)
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مايو 24
1744
0
مايو 23
1821
1
أكتوبر 22
1871
1
مايو 20
12149
1
مايو 19
3892