Skip to content

Commit

Permalink
[FIX] context on reports
Browse files Browse the repository at this point in the history
closes #31150

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
  • Loading branch information
etobella committed Feb 15, 2019
1 parent 073b7bb commit c16d282
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion addons/account/views/report_invoice.xml
Expand Up @@ -3,7 +3,7 @@
<data>
<template id="report_invoice_document">
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})" />
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)" />
<div class="page">
<div class="row">
<div name="invoice_address" class="col-xs-5 col-xs-offset-7">
Expand Down
Expand Up @@ -4,7 +4,7 @@
<template id="report_mrprepairorder">
<t t-set="o" t-value="doc"/>
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context({'lang': o.partner_id.lang})" />
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)" />
<div class="page">
<div class="oe_structure"/>

Expand Down
2 changes: 1 addition & 1 deletion addons/purchase/report/purchase_order_templates.xml
Expand Up @@ -2,7 +2,7 @@
<odoo>
<template id="report_purchaseorder_document">
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})"/>
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
<div class="page">
<div class="oe_structure"/>
<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion addons/purchase/report/purchase_quotation_templates.xml
Expand Up @@ -2,7 +2,7 @@
<odoo>
<template id="report_purchasequotation_document">
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})"/>
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)"/>
<div class="page">
<div class="oe_structure"/>

Expand Down
2 changes: 1 addition & 1 deletion addons/sale/report/sale_report_templates.xml
Expand Up @@ -2,7 +2,7 @@
<odoo>
<template id="report_saleorder_document">
<t t-call="web.external_layout">
<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)" />
<div class="page">
<div class="oe_structure"/>
<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion addons/stock/report/report_deliveryslip.xml
Expand Up @@ -4,7 +4,7 @@
<template id="report_delivery_document">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})" />
<t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)" />
<div class="page">
<div class="row" name="customer_address">
<div class="col-xs-4 pull-right">
Expand Down
2 changes: 1 addition & 1 deletion addons/stock/report/report_stockpicking_operations.xml
Expand Up @@ -166,7 +166,7 @@
</thead>
<tbody>
<tr t-foreach="o.entire_package_ids.sorted(key=lambda p: p.name)" t-as="package">
<t t-set="package" t-value="package.with_context({'picking_id':o.id})" />
<t t-set="package" t-value="package.with_context(picking_id=o.id)" />
<td><span t-field="package.name"/></td>
<td><img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', package.name, 600, 100)" style="width:300px ;height:50px"/></td>
<td><span t-field="package.current_source_location_id"/></td>
Expand Down

0 comments on commit c16d282

Please sign in to comment.