Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3711 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 25
360
2
thg 5 25
1403
1
thg 4 25
1311
0
thg 3 25
1414
0
thg 3 25
1338