[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:
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">
|
||||
|
||||
Reference in New Issue
Block a user