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

« back to all changes in this revision

Viewing changes to stock/views/report_lot_barcode.xml

  • Committer: Josse Colpaert
  • Date: 2014-05-23 08:13:00 UTC
  • Revision ID: jco@openerp.com-20140523081300-1b716lhth69gd1pj
[IMP] Add lot barcode

Show diffs side-by-side

added added

removed removed

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