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
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
3705
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Aug 25
|
357 | ||
|
2
May 25
|
1401 | ||
|
1
Apr 25
|
1311 | ||
|
0
Mar 25
|
1413 | ||
|
0
Mar 25
|
1331 |