diff --git a/odoo_module_migrate/migration_scripts/text_warnings/migrate_170_180/translations.yaml b/odoo_module_migrate/migration_scripts/text_warnings/migrate_170_180/translations.yaml new file mode 100644 index 00000000..ef345337 --- /dev/null +++ b/odoo_module_migrate/migration_scripts/text_warnings/migrate_170_180/translations.yaml @@ -0,0 +1,2 @@ +.py: + from odoo(\.tools(\.translate)?)? import .*_: "[18] When possible, it is better to rely on `Env._`: replace '_('text')' by 'self.env._('text')' and remove '_' from the imports. More details: https://github.com/odoo/odoo/pull/174844"