Hi All,
For the most part, when creating models or inheriting them, the import statement reads as follows:
from odoo import api, fields, model
But occasionally, I see the following in the code:
from odoo import api, fields, models, _
and also:
from odoo.tools.translate import _
Could someone explain what is the significance of the underscore _ in the odoo import statements above? Is this used as a catchall of some kind?
Just wondering...trying to understand it, that's all!
kind rgds,
ME
Thanks for the detailed explanation Yenthe and Waleed. Certainly shared some light on this!