2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
<data>
|
|
|
|
<template id="report_inventory">
|
|
|
|
<t t-call="web.html_container">
|
|
|
|
<t t-foreach="docs" t-as="o">
|
|
|
|
<t t-call="web.external_layout">
|
|
|
|
<div class="page">
|
|
|
|
<h2>Stock Inventory</h2>
|
|
|
|
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><strong>Inventory</strong></th>
|
|
|
|
<th><strong>Date</strong></th>
|
2018-01-23 07:40:28 +01:00
|
|
|
<th t-if="o.branch_id" groups="base_branch_company.group_multi_branch"><strong>Branch</strong></th>
|
2018-01-16 06:58:15 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<span t-field="o.name"/>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<span t-field="o.date"/>
|
|
|
|
</td>
|
2018-01-23 07:40:28 +01:00
|
|
|
<td t-if="o.branch_id" groups="base_branch_company.group_multi_branch">
|
2018-01-18 10:57:39 +01:00
|
|
|
<span t-field="o.branch_id"/>
|
|
|
|
</td>
|
2018-01-16 06:58:15 +01:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<t t-set="locations" t-value="o.line_ids.mapped('location_id')"/>
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th groups="stock.group_stock_multi_locations"><strong>Location</strong></th>
|
|
|
|
<th><strong>Product</strong></th>
|
|
|
|
<th groups="stock.group_production_lot"><strong>Production Lot</strong></th>
|
|
|
|
<th groups="stock.group_tracking_lot"><strong>Package</strong></th>
|
|
|
|
<th class="text-right"><strong>Quantity</strong></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<t t-foreach="locations" t-as="location">
|
|
|
|
<tr groups="stock.group_stock_multi_locations">
|
|
|
|
<td colspan="2"><strong t-esc="location.display_name"/></td>
|
|
|
|
<td groups="stock.group_production_lot"></td>
|
|
|
|
<td groups="stock.group_tracking_lot"></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr t-foreach="o.line_ids.filtered(lambda line: line.location_id.id == location.id)" t-as="line">
|
|
|
|
<td groups="stock.group_stock_multi_locations"></td>
|
|
|
|
<td><span t-field="line.product_id"/></td>
|
|
|
|
<td groups="stock.group_production_lot"><span t-field="line.prod_lot_id"/></td>
|
|
|
|
<td groups="stock.group_tracking_lot"><span t-field="line.package_id"/></td>
|
|
|
|
<td class="text-right"><span t-field="line.product_qty"/> <span t-field="line.product_uom_id" groups="product.group_uom"/></td>
|
|
|
|
</tr>
|
|
|
|
</t>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<t t-if="o.filter == 'product' and o.product_id">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-4 pull-right">
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<tr class="border-black">
|
|
|
|
<td><strong>Total Quantity</strong></td>
|
|
|
|
<td class="text-right">
|
|
|
|
<span t-field="o.total_qty"/> <span t-field="o.product_id.uom_id"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
</data>
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|