[FIX] stock: barcode_nomenclature_id field on stock.picking.type instead of stock...
[odoo/odoo.git] / addons / stock / views / report_stockinventory.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <template id="report_inventory">
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                              
10                             <h2>
11                             Stock Inventory 
12                             </h2>
13                             <table class="table table-condensed">
14                             <thead>
15                                 <tr>
16                                     <th><strong>Inventory</strong></th>
17                                     <th><strong>Date</strong></th>
18                                 </tr>
19                             </thead>
20                             <tbody>
21                                 <tr>
22                                     <td>
23                                         <span t-field="o.name"/>
24                                     </td>
25                                     <td>
26                                         <span t-field="o.date"/>
27                                     </td>
28                                 </tr>
29                             </tbody>
30                             </table>
31                             <table class="table table-condensed">
32                                 <thead>
33                                     <tr>
34                                         <th><strong>Location</strong></th>
35                                         <th><strong>Product</strong></th>
36                                         <th><strong>Production Lot</strong></th>
37                                         <th><strong>Package</strong></th>
38                                         <th class="text-right"><strong>Quantity</strong></th>
39                                     </tr>
40                                 </thead>
41                                 <tr t-foreach="o.line_ids" t-as="line">
42                                     <td><span t-field="line.location_id"/></td>
43                                     <td><span t-field="line.product_id"/></td>
44                                     <td><span t-field="line.prod_lot_id"/></td>
45                                     <td><span t-field="line.package_id"/></td>
46                                     <td class="text-right"><span t-field="line.product_qty"/> <span t-field="line.product_uom_id" groups="product.group_uom"/></td>
47                                 </tr>
48                                 <tr>
49                                     <td></td>
50                                 </tr>
51                             </table>
52                             <t t-if="o.filter == 'product' and o.product_id">
53                               <div class="row">
54                                 <div class="col-xs-4 pull-right">
55                                      <table class="table table-condensed">
56                                         <tr class="border-black">
57                                             <td><strong>Total Quantity</strong></td>
58                                             <td class="text-right">
59                                                 <span t-field="o.total_qty"/> <span t-field="o.product_id.uom_id"/>
60                                             </td>
61                                         </tr>
62                                     </table>
63                                 </div>
64                               </div>
65                             </t>
66                         </div>
67                     </t>
68                  </t>
69              </t>
70         </template>
71     </data>
72 </openerp>