T0492 sponsorship qr code - #2121
Open
Danielgergely wants to merge 3 commits into
Open
Conversation
Danielgergely
commented
Jul 28, 2026
Member
- Port the v14 childpack QR concept (child_switzerland) into the shared child_compassion core so the Nordic v18 instance gets it.
- Adds a computed qr_code_data on compassion.child linking to /my2/new-sponsorship/ and renders it on the small (A4) childpack.
- Optional qr code on full and small child packs
- Port the v14 childpack QR concept (child_switzerland) into the shared child_compassion core so the Nordic v18 instance gets it. - Adds a computed qr_code_data on compassion.child linking to /my2/new-sponsorship/<id> and renders it on the small (A4) childpack.
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Member
Author
|
Related PR |
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
What T-Rex did
|
| Filename | Overview |
|---|---|
| child_compassion/models/child_compassion.py | Adds a context-aware computed QR image containing the child-specific sponsorship URL. |
| child_compassion/report/childpack.xml | Conditionally renders the generated QR image in the child-pack report. |
| child_compassion/wizards/print_childpack.py | Adds the QR-printing option and forwards it to the report data. |
| child_compassion/views/print_childpack_view.xml | Exposes the QR option for the supported full and small child-pack types. |
| child_compassion/manifest.py | Declares PyQRCode and PyPNG using their Odoo 18-compatible distribution names. |
| requirements.txt | Adds the QR-generation packages to the environment requirements. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Print child-pack wizard] -->|print_qr| B[Child-pack report]
B -->|when enabled| C[Compute child qr_code_data]
C --> D[Build sponsorship URL with UTM parameters]
D --> E[Generate base64 PNG]
E --> F[Render QR image in child pack]
Reviews (2): Last reviewed commit: "[T0492] STYLE: pre-commit" | Re-trigger Greptile
Member
Author
|
@greptile review |
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.