diff options
| author | Jairo Llopis <yajo.sk8@gmail.com> | 2019-08-28 08:33:54 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-09-12 06:18:18 +0000 |
| commit | 5dad570423204c817f61d58b6d56bd376362e1b9 (patch) | |
| tree | 5a44bae1f84859da928cdab12663780fc6b6bb64 /doc | |
| parent | e7697ea472b29cfe6d595f530777914a6100de02 (diff) | |
[FIX] *: remove buggy calls to with_context
When .with_context() is called with a dictionary as 1st positional
argument, it will replace context (and not modify the referenced keys)
It may create bugs when losing the content of the context (e.g. remove
partner's language)
This is a partial merge of #36164 without the inventory part as
discussed.
closes odoo/odoo#36729
X-forward: 4717ccfa
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/reference/reports.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/reference/reports.rst b/doc/reference/reports.rst index ee36f9bfd27..f12efdcab07 100644 --- a/doc/reference/reports.rst +++ b/doc/reference/reports.rst @@ -153,7 +153,7 @@ For example, let's look at the Sale Order report from the Sale module:: <!-- Translatable template --> <template id="report_saleorder_document"> <!-- Re-browse of the record with the partner lang --> - <t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})" /> + <t t-set="doc" t-value="doc.with_context(lang=doc.partner_id.lang)" /> <t t-call="web.external_layout"> <div class="page"> <div class="oe_structure"/> |
