[FIX] mrp_repair: fix templates duplicating report when printing it

We are looping twice on docs. To have a minimal diff we just try to reuse
existing variable but with loops correctly taken into account.

Closes #25008 .
This commit is contained in:
Long Do
2018-06-12 10:05:52 +02:00
committed by Thibault Delavallée
parent b0f1886f97
commit 869b833618
@@ -2,7 +2,7 @@
<odoo>
<data>
<template id="report_mrprepairorder">
<t t-foreach="docs" t-as="o">
<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})" />
<div class="page">
@@ -155,7 +155,6 @@
<div class="oe_structure"/>
</div>
</t>
</t>
</template>
<template id="report_mrprepairorder2">