[IMP] Manufacture should be by default in all warehouses
[odoo/odoo.git] / addons / stock / views / report_stockpicking.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <template id="report_picking">
5             <t t-call="report.html_container">
6                 <t t-foreach="docs" t-as="o">
7                     <t t-call="report.external_layout">
8                         <div class="page">
9                             <div class="row"><div class="col-xs-4 pull-right">
10                             <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;"/>
11                             </div></div>
12                              <div t-if="o.picking_type_id.code=='incoming' and o.partner_id">
13                                  <span><strong>Supplier Address:</strong></span>
14                              </div>
15                              <div t-if="o.picking_type_id.code=='internal' and o.partner_id">
16                                  <span><strong>Warehouse Address:</strong></span>
17                              </div>
18                              <div t-if="o.picking_type_id.code=='outgoing' and o.partner_id">
19                                  <span><strong>Customer Address:</strong></span>
20                              </div>
21                              <div t-if="o.partner_id" name="partner_header">
22                                  <div t-field="o.partner_id" 
23                                     t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/>
24                                 <p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p>
25                              </div>
26                              
27                              <h2>
28                              <span t-field="o.picking_type_id"/>: 
29                              <span t-field="o.name"/>
30                              </h2>
31                              <table class="table table-condensed">
32                             <thead>
33                                 <tr>
34                                     <th><strong>Order (Origin)</strong></th>
35                                     <th><strong>State</strong></th>
36                                     <th><strong>Commitment Date</strong></th>
37                                     <th name="td_sched_date_h"><strong>Scheduled Date</strong></th>
38                                 </tr>
39                             </thead>
40                             <tbody>
41                                 <tr>
42                                     <td>
43                                         <span t-field="o.origin"/>
44                                     </td>
45                                     <td>
46                                         <span t-field="o.state"/>
47                                     </td>
48                                     <td>
49                                         <span t-field="o.date"/>
50                                     </td>
51                                     <td name="td_sched_date">
52                                         <span t-field="o.min_date"/>
53                                     </td>
54                                 </tr>
55                             </tbody>
56                             </table>
57                             <br/>
58                             <br/>
59                             <table class="table table-condensed" t-if="not o.pack_operation_ids">
60                               <thead>
61                                 <tr>
62                                     <th><strong>Product</strong></th>
63                                     <th class="text-right"><strong>Quantity</strong></th>
64                                     <t t-if="o.picking_type_id.code != 'incoming'"><th><strong>Source</strong></th></t>
65                                     <th><strong>Barcode</strong></th>
66                                     <t t-if="o.picking_type_id.code != 'outgoing'"><th><strong>Destination</strong></th></t>
67                                 </tr>
68                               </thead>
69                               <tbody>
70                                 <tr t-foreach="o.move_lines" t-as="move">
71                                     <td><span t-field="move.product_id"/></td>
72                                     <td class="text-right"><span t-field="move.product_uom_qty"/> <span t-field="move.product_uom" groups="product.group_uom"/></td>
73                                     <t t-if="o.picking_type_id.code != 'incoming'"><td><span t-field="move.location_id"/></td></t>
74                                     <td>
75                                         <span t-if="move.product_id and move.product_id.ean13">
76                                             <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', move.product_id.ean13, 600, 100)" style="width:300px;height:50px"/>
77                                         </span>
78                                     </td>
79                                     <t t-if="o.picking_type_id.code != 'outgoing'"><td><span t-field="move.location_dest_id"/></td></t>
80                                 </tr>
81                               </tbody>
82                             </table>
83                             <table class="table table-condensed" t-if="o.pack_operation_ids">
84                               <thead>
85                                 <tr>
86                                     <th><strong>Product</strong></th>
87                                     <th class="text-right"><strong>Quantity</strong></th>
88                                     <t t-if="o.picking_type_id.code != 'incoming'"><th><strong>Source</strong></th></t>
89                                     <th><strong>Barcode</strong></th>
90                                     <t t-if="o.picking_type_id.code != 'outgoing'"><th><strong>Destination</strong></th></t>
91                                 </tr>
92                               </thead>
93                               <tbody>
94                                 <tr t-foreach="o.pack_operation_ids" t-as="pack_operation">
95                                     <td><span t-field="pack_operation.product_id"/>
96                                         <t t-if="not pack_operation.product_id and pack_operation.package_id"><span  t-field="pack_operation.package_id"/></t></td>
97                                     <td class="text-right"><span t-field="pack_operation.product_qty"/> <span t-field="pack_operation.product_uom_id" groups="product.group_uom"/></td>
98                                     <t t-if="o.picking_type_id.code != 'incoming'"><td><span t-field="pack_operation.location_id"/>
99                                         <span t-if="pack_operation.package_id">:</span>
100                                         <span t-field="pack_operation.package_id"/>
101                                         <span t-if="pack_operation.lot_id">:</span>
102                                         <span t-field="pack_operation.lot_id"/>
103                                         </td>
104                                     </t>
105                                     <td>
106                                         <span t-if="pack_operation.lot_id">
107                                             <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', pack_operation.lot_id.name, 600, 100)" style="width:300px;height:50px"/>
108                                         </span>
109                                         <span t-if="pack_operation.product_id and not pack_operation.lot_id and pack_operation.product_id.ean13">
110                                             <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', pack_operation.product_id.ean13, 600, 100)" style="width:300px;height:50px"/>
111                                         </span>
112                                         <span t-if="pack_operation.package_id and not pack_operation.product_id">
113                                             <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', pack_operation.package_id.name, 600, 100)" style="width:300px;height:50px"/>
114                                         </span>
115                                     </td>
116                                     <t t-if="o.picking_type_id.code != 'outgoing'"><td><span t-field="pack_operation.location_dest_id"/>
117                                         <span t-if="pack_operation.result_package_id">:</span>
118                                         <span t-field="pack_operation.result_package_id"/>
119                                     </td></t>
120                                 </tr>
121                               </tbody>
122                             </table>
123                         </div>
124                     </t>
125                  </t>
126              </t>
127         </template>
128     </data>
129 </openerp>