summaryrefslogtreecommitdiff
path: root/addons/document/document_data.xml
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2015-04-07 18:33:48 +0200
committerOlivier Dony <odo@openerp.com>2015-04-07 18:33:49 +0200
commit56c95d28439f0829a52ebd879719d29751a7cdbd (patch)
tree91d1379f3a15ceecf2f6e259e243ab3b5c1fe62a /addons/document/document_data.xml
parentffacce7140f22a90a46d8819274fedfc7c86c88e (diff)
[FIX] report_sxw: setLang() should discard browse_record cache
`setLang` alters the "browse" context of the documents being printed, but it must also discard any values already cached, as they could be using a different language. This is the case when the report uses translatable fields on `res.partner`, because `setLang` is usually called with the target partner language, hence prefetching the translatable fields with the user's language instead of the partner's language. E.g. `setLang(o.partner_id.lang)` will cache any translatable field on `o.partner_id` in the language of the *user*, not the *partner*.
Diffstat (limited to 'addons/document/document_data.xml')
0 files changed, 0 insertions, 0 deletions