Skip to content

Commit ac9151b

Browse files
committed
[IMP] Add warning for direct '_' import in translations
1 parent 9014d66 commit ac9151b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.py:
2+
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"

0 commit comments

Comments
 (0)