odoo/odoo#179267
Created by SM Customer, Amélie Dieudonné (amdi)
Merged
at e1d156662d34b6a1edd5997a5b2f31cc3d27da12
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:saas-17.4-website-forum-fix-flag-post-traceback-amdi
- head
- 9027d05a4e73a4b60ccd5e91867347d0335a3a56
- merged
- 1 year ago by Marketing, Thibault Delavallee (tde)
| odoo/odoo | |
|---|---|
| saas-17.4 | #179267 |
| 18.0 | |
| saas-18.2 | |
| saas-18.3 | |
| saas-18.4 | |
| 19.0 | |
| master | #181020 |
[FIX] website_forum: fix post flag traceback
Purpose
Fix the traceback appearing when trying to validate a flagged post.
Specification
In this commit 876ebbee6b769c18172e6a61bd7248ee4c034ca7 the validate method has been changed to be private as it didn't look like it was called from the JS.
However when validating a flagged post, the name of the orm method to call through JS is actually hidden being the current target data-action. Changing back the '_validate' method to be public so that it can be called from the JS again.
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr