[FIX] website_mail, website_sale : redirect to login page to post comment
Add 'force_display' param for the frontend chatter to allow public user to see the textarea. When submitting his comment, he will be redirect to login page (like it was before generic chatter) in both mode (json and post mode). This required changing the error handeling of json mode : when a login is required, the user switch to post mode to allow http redirect, keeping its submitted params (rating, comment, ...).
Showing
- addons/website_mail/controllers/main.py 40 additions, 15 deletionsaddons/website_mail/controllers/main.py
- addons/website_mail/static/src/js/message_post.js 10 additions, 5 deletionsaddons/website_mail/static/src/js/message_post.js
- addons/website_mail/views/website_mail.xml 3 additions, 1 deletionaddons/website_mail/views/website_mail.xml
- addons/website_sale/controllers/website_mail.py 6 additions, 6 deletionsaddons/website_sale/controllers/website_mail.py
- addons/website_sale/views/templates.xml 1 addition, 0 deletionsaddons/website_sale/views/templates.xml
Please register or sign in to comment