odoo / o-spreadsheet

Other
176 stars 36 forks source link

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

Closed fw-bot closed 2 weeks ago

fw-bot commented 2 weeks ago

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

robodoo commented 2 weeks ago

Pull request status dashboard

fw-bot commented 2 weeks ago

This PR targets saas-17.3 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port