Skip to content

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