odoo / o-spreadsheet

Other
176 stars 36 forks source link

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

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

@hokolomopo @pro-odoo this PR targets master and is the last of the forward-port chain containing:

To merge the full chain, use

@robodoo r+

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

pro-odoo commented 2 weeks ago

robodoo r+