-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][FIX]: translation in owl templates #47
base: 16.0
Are you sure you want to change the base?
Conversation
Hi @etobella, |
If I don't remember bad, what you should do is: from odoo import models
class IrHttp(models.AbstractModel):
_inherit = "ir.http"
@classmethod
def _get_translation_frontend_modules_name(cls):
mods = super(IrHttp, cls)._get_translation_frontend_modules_name()
return mods + ["sign_oca"] |
You must also follow commit message guidelines: https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#commit-message |
Even if the po file exists, the request sign page was never translated because of the translatefn missing in owl mount function.
From what i understand, this avoid to call "session.load_translations" (is it right?), but I'm not able to find a useful documentation about how to handle this scenario in owl components. PS: fixed commit guidelines, sorry for the inconvenience. |
According to Pedro, the change he is asking says: Return a list of module name where web-translations and Actually, some Odoo modules use it, like payment, portal or im_livechat |
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Load it.po terms in owl frontend templates too