Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4033 Vizualizări

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
aug. 25
927
2
mai 25
1773
1
apr. 25
1735
0
mar. 25
1729
0
mar. 25
1687