[FIX] context on reports
closes odoo/odoo#31150 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
This commit is contained in:
@@ -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"/>
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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&value=%s&width=%s&height=%s' % ('Code128', package.name, 600, 100)" style="width:300px ;height:50px"/></td>
|
||||
<td><span t-field="package.current_source_location_id"/></td>
|
||||
|
||||
Reference in New Issue
Block a user