odoo/o-spreadsheet#4513

Created by fw-bot
Merged at 9cef1909d49da64f15dba2ee2cbcb28ec2677402

Statuses:

label
odoo:master-17.0-set-default-translations-as-loaded-adrm-fQvd-fw
head
f4841f3d4f821d367d5f86834446f2db1643fc5f
merged
2 years ago by BI, Pierre Rousseau (pro)
odoo/o-spreadsheet
17.0 #4497
saas-17.1 #4509
18.0
saas-17.2 #4510
saas-17.3 #4512
19.0
saas-19.1
saas-19.2
saas-19.3
saas-19.4
20.0
master #4513

[FW][FIX] model: mark default translations as loaded

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: #4497