New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] website: ensure websites have snippet filters #62041
Conversation
bf62525
to
6c357e5
Compare
@JKE-be Can you have a first look to see if that's the way you want it to go? The backport commit should be enough to fix when the user do a -u (its backport + set website_id to False) For when no -u, the other commit should handle cases of creating a new website, removing the default website. But one issue remain: User do not -u, delete the default website (filters are lost), then create a new website (no filters). |
10263ef
to
6c357e5
Compare
As a reminder since those messages are folded, the forward port is disabled, so this is just for 14.0. |
93d00a9
to
68bd9dc
Compare
68bd9dc
to
d5e7025
Compare
d5e7025
to
e5385d1
Compare
e5385d1
to
dfc4f49
Compare
Since the feature was implemented with the default snippets having a website_id set to the default website, it means that every other websites won't have snippet filters. This commit bootstrap filters for every new created website. Note that in master, multi-website and generic filters are handled with 550d293. opw-2381423 Closes odoo#62041
Because there is a trailing comma, the code crashes and the domain becomes a tuple. Closes odoo#62041
dfc4f49
to
1af91ac
Compare
@JKE-be Fixed the right error for non admin user |
@robodoo r+ |
Because this PR has multiple commits, I need to know how to merge it:
|
@robodoo rebase-ff |
Merge method set to rebase and fast-forward |
Because there is a trailing comma, the code crashes and the domain becomes a tuple. Closes #62041 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Since the feature was implemented with the default snippets having a website_id set to the default website, it means that every other websites won't have snippet filters. This commit bootstrap filters for every new created website. Note that in master, multi-website and generic filters are handled with 550d293. opw-2381423 Closes odoo#62041
Because there is a trailing comma, the code crashes and the domain becomes a tuple. Closes odoo#62041 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Since the feature was implemented with the default snippets having a website_id
set to the default website, it means that every other websites won't have
snippet filters.
This commit bootstrap filters for every new created website.
Note that in master, multi-website and generic filters are handled with
550d293.
opw-2381423