Skip to Content
Menú
This question has been flagged
3715 Vistes

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
d’ag. 25
368
2
de maig 25
1409
1
d’abr. 25
1313
0
de març 25
1416
0
de març 25
1341