Skip to content

Commit

Permalink
context on reports
Browse files Browse the repository at this point in the history
Description of the issue/feature this PR addresses: the context on some reports is reseted inside it. It should be addressed kwargs
Idem as odoo#31150

Current behavior before PR: Fixes the reports

Desired behavior after PR is merged: The original context is not deleted, only updated

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
  • Loading branch information
Tonow-c2c authored and i-vyshnevska committed Jan 27, 2022
1 parent cd36d9a commit 8d433a8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 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="report.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-foreach="docs" t-as="o">
<t t-call="report.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="report.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="report.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="report.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="report.html_container">
<t t-call="report.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

0 comments on commit 8d433a8

Please sign in to comment.