Skip to content

T3090 utm qr code#321

Merged
ecino merged 3 commits into
14.0from
T3090-utm-qr-code
Apr 16, 2026
Merged

T3090 utm qr code#321
ecino merged 3 commits into
14.0from
T3090-utm-qr-code

Conversation

@Danielgergely
Copy link
Copy Markdown
Member

  • FEAT: extract UTM variables from url
  • FIX: this enables unauthenticated users to access a child's page (when for example scanning a qr code on a child pack)

- FIX: this enables unauthenticated users to access a child's page (when for example scanning a qr code on a child pack)
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces UTM parameter tracking for sponsorship wizards by capturing parameters from the URL, storing them in the session, and linking them to the resulting sponsorship record. Key feedback includes a security concern regarding the automatic creation of UTM records from public input, which could lead to database pollution. Other recommendations involve refactoring repetitive logic into a loop, using integer route converters for better validation, and adopting more idiomatic Odoo methods like browse() for record retrieval.

Comment thread my_compassion/controllers/my2_sponsorships.py Outdated
Comment thread my_compassion/controllers/my2_sponsorships.py Outdated
Comment thread my_compassion/controllers/my2_sponsorships.py Outdated
Comment thread my_compassion/controllers/my2_sponsorships.py Outdated
- REFACTOR: using for loop for more efficiency
- FIX: campaign is now not auto created. needs to exist before assignment, otherwise it will be ignored.
- FIX: using int instead of string for child id, and browse instead of a normal search
@ecino ecino merged commit 1fa67d1 into 14.0 Apr 16, 2026
1 check passed
@ecino ecino deleted the T3090-utm-qr-code branch April 16, 2026 09:51
@NoeBerdoz NoeBerdoz mentioned this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants