Skip to content

Conversation

@CHunYenc
Copy link

  • Upgrade sentry_sdk from <=1.9.0 to >=2.0.0,<=2.42.0
  • Bump module version from 17.0.1.0.0 to 17.0.1.0.1
  • Revert 18.0 references back to 17.0 in documentation
  • Fix translation template version from 18.0 to 17.0
  • Clean up merge conflict markers in generated files

This update brings compatibility with sentry_sdk 2.x while maintaining 17.0 branch consistency.

atchuthan and others added 11 commits October 18, 2025 19:42
…repository

Debian Bullseye is used as base docker image for odoo:15.0
To avoid following error:
AttributeError: 'InMemoryTransport' object has no attribute 'options'
Fixes

```
  File "/home/odoo/.local/lib/python3.12/site-packages/sentry_sdk/client.py", line 595, in _prepare_event
    new_event = before_send(event, hint or {})
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/odoo/src/user/oca-server-tools/sentry/hooks.py", line 66, in before_send
    if event.setdefault("tags", {})["include_context"]:
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'include_context'
2025-07-08 14:45:45,907 14296 INFO quatra-18-0-development-21441249 sentry_sdk.errors: before send dropped event
```

Error is only logged when running Sentry in debug mode, otherwise events are dropped silently.
- Upgrade sentry_sdk from <=1.9.0 to >=2.0.0,<=2.42.0
- Bump module version from 17.0.1.0.0 to 17.0.1.0.1
- Revert 18.0 references back to 17.0 in documentation
- Fix translation template version from 18.0 to 17.0
- Clean up merge conflict markers in generated files

This update brings compatibility with sentry_sdk 2.x while
maintaining 17.0 branch consistency.
@OCA-git-bot
Copy link
Contributor

Hi @moylop260, @versada, @fernandahf, @naglis, @barsi,
some modules you are maintaining are being modified, check this out!

@CHunYenc
Copy link
Author

This is my first time submitting a PR using cherry-pick in OCA.

I've learned a lot.

@moylop260

Thanks :)

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.

7 participants