~openerp-dev/openobject-addons/trunk-wms-gdechanges2-jco

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_lot_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-8">
                            <table class="table table-condensed" style="border-bottom: 0px solid white !important;">
                                <thead>
                                    <tr>
                                        <th>Product</th>
                                        <th>Lot</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <td>
                                       <span  t-field="o.product_id.name"/>
                                    </td>
                                    <td>
                                        <span t-field="o.name"/>
                                    </td>
                                </tbody>
                            </table>
                        </div>
                        <div class="col-xs-4">
                            <img class="image" t-att-src="'data:image/png;base64,%s' % res_company.logo" style="border:auto;"/>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12 mt32">
                            <table class="table table-condensed" style="border-bottom: 3px solid black !important;"><thead><th> </th></thead></table>
                            <img 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"/>
                            <p class="text-center" t-field="o.name"></p>
                        </div>
                    </div>
                </div>
            </t>
        </t>
    </t>
</template>
</data>
</openerp>