[FIX] context on reports

closes odoo/odoo#31150

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
This commit is contained in:
Enric Tobella
2019-02-15 12:58:38 +00:00
parent 073b7bb944
commit c16d2827bc
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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">
@@ -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"/>
@@ -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">
@@ -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"/>
+1 -1
View File
@@ -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">
+1 -1
View File
@@ -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">
@@ -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>