On startup (docker compose up) I get lots of warnings "WARNING ? odoo.tools.translate: no translation language detected, skipping translation" for my translated addon. This happens even for fields which are clearly translated correctly since they are shown correctly on the frontend. Once up and running my odoo does not produce these warnings anymore - only on startup.
At first I thought this might be related to not having the correct language context on startup. But since I don't get these warnings for base modules, I suspect this is not expected behavior.
My structure looks like this:
myaddon
--i18n
----de.po
--models
----mymodel.py
--views
----my_views.xml
Any ideas what might be the cause?
Thanks in advance!
Based on the answers below (thanks!):
- this is normal behavior
- base modules are not effected in the same way due to cached translations / language initialization
- warnings can be suppressed (--log-handler=odoo.tools.translate:ERROR)