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
この質問にフラグが付けられました
3738
ビュー
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
2
8月 25
|
405 | ||
|
2
5月 25
|
1425 | ||
|
1
4月 25
|
1334 | ||
|
0
3月 25
|
1419 | ||
|
0
3月 25
|
1344 |