Currently the default translations function is marked as not loaded. That means that if no custom translation method is set, the translations will never be marked as loaded, and charts will crash because we try to deepCopy LazyTranslatedString.
However we can't mark the default translations as loaded by default, because otherwise top-level translations would always be translated before we can set the translation method.
The solution is to mark the default translations as loaded only when starting the model.
Description
Currently the default translations function is marked as not loaded. That means that if no custom translation method is set, the translations will never be marked as loaded, and charts will crash because we try to deepCopy LazyTranslatedString.
However we can't mark the default translations as loaded by default, because otherwise top-level translations would always be translated before we can set the translation method.
The solution is to mark the default translations as loaded only when starting the model.
Task: : 3999116
review checklist
Forward-Port-Of: odoo/o-spreadsheet#4497