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

Hi,

I need to show the count of records in a menuitem in 'crm.lead' model.
I have tried the  'needaction_domain_get()' and '_needaction_count()' methods to do it, i.e,

1)  @api.model

     def _needaction_domain_get(self):

         return [('stage_type', '=', 'approval')]

2)  @api.model

     def _needaction_count(self, domain=None):

        domain = [('stage_type', '=', 'approval')]

        return self.search_count(domain)


The first method is not showing any count at all.
But when I use the second method, it shows the count correctly but it is showing the count on another menuitem.
Any help appreciated.
Thank you

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 17
4723
0
مايو 16
3
2
أغسطس 25
560
2
مايو 25
1496
1
أبريل 25
1419