<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_location_barcode">
    <t t-call="report.html_container">
        <t t-foreach="docs" t-as="o">
            <t>
                <div class="page">
                    <div class="oe_structure"/>
                    <div class="row">
                        <div class="col-xs-6 mt6">
                            <table class="table table-condensed" style="border-bottom: 3px solid black !important;"><thead><th> </th></thead></table>
                            <img t-if="not o.loc_barcode" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 600, 100)" style="width:300px;height:50px"/>
                            <img t-if="o.loc_barcode" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.loc_barcode, 600, 100)" style="width:300px;height:50px"/>
                            <p>
                            <span t-if="not o.loc_barcode" t-field="o.name"/>
                            <span t-if="o.loc_barcode" t-field="o.loc_barcode"/>
                            </p>
                        </div>
                    </div>
                </div>
            </t>
        </t>
    </t>
</template>
</data>
</openerp>