Skip to content
Snippets Groups Projects
Commit d8f3c941 authored by damr's avatar damr
Browse files

[FIX] 14.0 rating: submit rating feedback with 'get' method


In rating/controllers/main.py, the method action_submit_rating accepts
only post request. This creates a problem when you're trying to use the
web editor on the template as well as when you just paste the url in
your browser, for those are get request. The current behavior is a crash
with 'method not allowed'. This commit's purpose is to change the method
so it also accept get request. The use case of editing the feedback
rating page is arguable but it schould not crash.

The behavior after this commit is that the web editor is enable for the
page, and relaoding the page does not crash anymore.

task-3047893

closes odoo/odoo#104856

Signed-off-by: default avatarLaurent Stukkens (ltu) <ltu@odoo.com>
parent ac11b7e0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment