[9.0][IMP] stock_cycle_count: cycle counts report

This commit is contained in:
lreficent
2017-11-15 10:35:40 +01:00
committed by Lois Rilo
parent 5dd19a8277
commit 8ff385bed4
2 changed files with 60 additions and 0 deletions

View File

@@ -27,6 +27,7 @@
'data/cycle_count_sequence.xml',
'data/cycle_count_ir_cron.xml',
'reports/stock_location_accuracy_report.xml',
'reports/stock_cycle_count_report.xml',
'security/ir.model.access.csv',
],
"license": "AGPL-3",

View File

@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017 Eficent Business and IT Consulting Services S.L.
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<template id="report_cyclecount">
<t t-call="report.html_container">
<t t-call="report.internal_layout">
<div class="page">
<table class="table table-condensed">
<thead>
<tr>
<th>Cycle Count #</th>
<th>Location</th>
<th>Required Date</th>
<th>Assigned to</th>
<th>Status</th>
</tr>
</thead>
<tbody class="sale_tbody">
<t t-foreach="docs" t-as="doc">
<tr>
<td>
<span t-field="doc.name"/>
</td>
<td>
<span t-field="doc.location_id"/>
</td>
<td>
<span t-field="doc.date_deadline"/>
</td>
<td>
<span t-field="doc.responsible_id"/>
</td>
<td class="text-right">
<span t-field="doc.state"/>
</td>
</tr>
</t>
</tbody>
</table>
</div>
</t>
</t>
</template>
<!-- Report action -->
<report
id="action_report_stock_cycle_count"
model="stock.cycle.count"
name="stock_cycle_count.report_cyclecount"
string="Cycle Count"
report_type="qweb-pdf"
groups="stock.group_stock_user"/>
</odoo>