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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
3699
瀏覽次數
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
2
8月 25
|
352 | ||
|
2
5月 25
|
1399 | ||
|
1
4月 25
|
1309 | ||
|
0
3月 25
|
1412 | ||
|
0
3月 25
|
1331 |