-
Notifications
You must be signed in to change notification settings - Fork 23.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] website_forum: fix tag click event not found records
A forum tag is always linked to a forum. But some flows are not considering that part and are returning/using tags from other forum too. Step to reproduce, having 2 forum `Cats` and `Dogs`: - Create a `Food` tag on the `Dogs` forum - On the `Cats` forum, type `Food` in the tag input - First error: the `Food` from `Dogs` incorrectly shows up It means that the user can't create a new one from the `Cats` forum but will actually have to select (without know it) the one from the `Dogs` forum. - Select that tag anyway - Second error: The tags displayed on the post is redirecting to the wrong other forum, ultimately not showing the post from all forums (and the one you just came from). - Third error: The /tags page won't list the `Food` tag on the `Cats` forum. Note that there is probably some access traceback involved in a multi website and/or multi company setup. After this commit: - only the tags from the current forum will show up and be selectable when creating a post. - it will be possible to create a new tag for a forum is another forum already has a tag of that name - the tag on the post (next to its title) will not redirect to the incorrect (and possibly not accessible) forum Note that the method was already reading multiple properties of `self`, it was already not an `api.model` method anymore. closes #94910 X-original-commit: 4ff52d0 Signed-off-by: Romain Derie (rde) <rde@odoo.com> Co-authored-by: hoangtiendung <hoangtiendung070797@gmail.com>
- Loading branch information
1 parent
a99b567
commit cc70a6c
Showing
4 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters