diff options
| author | Olivier Dony <odo@openerp.com> | 2015-04-07 18:33:48 +0200 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2015-04-07 18:33:49 +0200 |
| commit | 56c95d28439f0829a52ebd879719d29751a7cdbd (patch) | |
| tree | 91d1379f3a15ceecf2f6e259e243ab3b5c1fe62a /addons/document/document_data.xml | |
| parent | ffacce7140f22a90a46d8819274fedfc7c86c88e (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
