Skip to content

Commit 6bdaa36

Browse files
committed
[FIX] awesome_dashboard: Get rid of the deprecated warning
`json` routes were deprecated to `jsonrpc` in 19.0, let's get rid of the warning to avoid confusion for the newdoos. task-none closes #1038 X-original-commit: 781b590 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
1 parent 0f2932f commit 6bdaa36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awesome_dashboard/controllers/controllers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
logger = logging.getLogger(__name__)
1010

1111
class AwesomeDashboard(http.Controller):
12-
@http.route('/awesome_dashboard/statistics', type='json', auth='user')
12+
@http.route('/awesome_dashboard/statistics', type='jsonrpc', auth='user')
1313
def get_statistics(self):
1414
"""
1515
Returns a dict of statistics about the orders:

0 commit comments

Comments
 (0)