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

Hi , i want to count the list of rows in a reminder and display the number of this list , what can i change in this function to display the number in the menuitem:

              class Reminders(http.Controller):

                          @http.route('/general_reminders/all_reminder', type='json', auth="public")

                          def all_reminder(self):

                          reminder = []

                          nb=0

                          for i in request.env['popup.reminder'].search([]):

                                     reminder.append(i.name)

                                     nb=nb+1

                              return reminder

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 25
360
2
مايو 25
1402
1
أبريل 25
1311
0
مارس 25
1414
0
مارس 25
1338