Skip to content

Commit ebc864d

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

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 import .*_: "[18] The '_' symbol should no longer be imported directly for translations. Remove '_' from the 'from odoo import' statement, and replace any instances of '_('text')' with 'self.env._('text')'. This change is required for better context handling. More details: https://github.com/odoo/odoo/pull/174844"

0 commit comments

Comments
 (0)