[FIX] stock: location barcode more than one page

Since 3d04e4488, several pages have to be denoted by:

  `<div class="article" />`

And not as previously:

  `<div class="page" />`

This was not taken into account in the "Location BarCode" report so we
had only one page of barcode (so 4 barcodes since there is 4 barcode by
page) displayed.

fixes #19698
opw-1817574
closes #24098
This commit is contained in:
Nicolas Lempereur
2018-04-06 18:17:56 +02:00
parent 5eb6e14e85
commit ef2646ae9d
@@ -10,7 +10,7 @@
<template id="report_location_barcode">
<t t-call="report.basic_layout">
<div t-foreach="[docs[x:x+4] for x in xrange(0, len(docs), 4)]" t-as="page_docs" class="page page_stock_location_barcodes">
<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>
<t t-if="not o.barcode"><t t-set="content" t-value="o.name"/></t>