[IMP] website_membership_group: integrate Members dynamic snippet#142
Open
superabdellekke wants to merge 1 commit into
Open
[IMP] website_membership_group: integrate Members dynamic snippet#142superabdellekke wants to merge 1 commit into
superabdellekke wants to merge 1 commit into
Conversation
Fold the website_membership_snippet module into website_membership_group so a separate module is no longer needed. The snippet allows dragging a "Members" block onto any website page and filtering by membership group. Changes: - Add JSON endpoint /membership/snippet/groups returning published groups - Add dynamic snippet templates (Grid, List, Avatars) - Add snippet panel registration with group selector option - Add JS frontend (filter by group + state) and options widget - Override _filter_records_to_values to fix binary/image False decode crash - Add empty-state message when no published/current members match - Add Odoo unit tests for filter, endpoint, rendering, and hidden members - Remove obsolete website_membership_snippet module
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
website_membership_snippetmodule intowebsite_membership_groupKey details
/membership/snippet/groupsreturns published groups as JSONDynamicSnippetwith group + state filtering<we-select>dropdown, populated via RPC_filter_records_to_valuesencountersFalseon binary/image fields for sample recordstest_snippet_templates_exist(duplicative check)website_publishedflag)Files changed
data/website_snippet_filter_data.xmlviews/snippets/dynamic_templates.xmlviews/snippets/members_snippet.xmlstatic/src/js/membership_snippet.esm.jsstatic/src/js/membership_snippet_options.esm.jsmodels/website_snippet_filter.pytests/test_membership_snippet.py__manifest__.pycontrollers/main.pymodels/__init__.pywebsite_membership_snippet/(entire module)