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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
3706
화면
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
2
8월 25
|
357 | ||
|
2
5월 25
|
1401 | ||
|
1
4월 25
|
1311 | ||
|
0
3월 25
|
1414 | ||
|
0
3월 25
|
1334 |