Moves performed - data and demo files are now located inside the data directory - data and demo files name updated - report views moved inside report directory instead of views - main stock menus declarations moved from stock.xml to stock_menu_views.xml in order to have all main menus in a single file, extracted from model specific views - data section of __openerp__.py file reorganized accordingly No change done in this commit.
24 lines
984 B
XML
24 lines
984 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<template id="assets_common" name="stock_location_barcodes pdf assets" inherit_id="report.assets_common">
|
|
<xpath expr="." position="inside">
|
|
<link href="/stock/static/src/less/report_location_barcode.less" rel="stylesheet"/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="report_location_barcode">
|
|
<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 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>
|
|
<img class="barcode" t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&humanreadable=1' % ('Code128', content, 600, 100)"/>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
</data>
|
|
</openerp>
|