[FIX] stock: xrange->range in template report_location_barcode

closes odoo/odoo#29652
This commit is contained in:
Andrea
2018-12-19 15:10:13 +00:00
parent 24b88b6af9
commit fe381f95b7
@@ -10,7 +10,7 @@
<template id="report_location_barcode">
<t t-call="web.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">
<div t-foreach="[docs[x:x+4] for x in range(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>