Skip to content

[FIX] web_notify: Use Odoo 17 translation API#3414

Open
vasi26ro wants to merge 1 commit intoOCA:17.0from
vasi26ro:17.0-web_notify-fix-translation-api
Open

[FIX] web_notify: Use Odoo 17 translation API#3414
vasi26ro wants to merge 1 commit intoOCA:17.0from
vasi26ro:17.0-web_notify-fix-translation-api

Conversation

@vasi26ro
Copy link

In Odoo 17, the translation function is no longer available through env._t() but must be imported directly from @web/core/l10n/translation.

This change:

  • Imports _t from @web/core/l10n/translation
  • Replaces env._t("Open") with _t("Open")
  • Prefixes unused env parameter with underscore

In Odoo 17, the translation function is no longer available through
env._t() but must be imported directly from @web/core/l10n/translation.

This change:
- Imports _t from @web/core/l10n/translation
- Replaces env._t("Open") with _t("Open")
- Prefixes unused env parameter with underscore
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.

1 participant