[FIX] stock: location barcode no all page on one
In 93147fb4 the issue that only one page of barcode were printed was solved. But there is still an issue since the container element is itself a page, we got an additonal page with all barcode on it. To solve this we use a 'report.html_container' instead of 'report.basic_layout' which doesn't wrap the content with a `<div class="article" />` element. opw-1827673 closes #24201
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
</template>
|
||||
|
||||
<template id="report_location_barcode">
|
||||
<t t-call="report.basic_layout">
|
||||
<t t-call="report.html_container">
|
||||
<div t-foreach="[docs[x:x+4] for x in xrange(0, len(docs), 4)]" t-as="page_docs" class="page article page_stock_location_barcodes">
|
||||
<t t-foreach="page_docs" t-as="o">
|
||||
<t t-if="o.barcode"><t t-set="content" t-value="o.barcode"/></t>
|
||||
|
||||
Reference in New Issue
Block a user