9 changed files with 237 additions and 0 deletions
@ -0,0 +1,32 @@ |
|||
Print Work Order Details v11 |
|||
============================ |
|||
Generate PDF Report of Work Order |
|||
|
|||
Depends |
|||
======= |
|||
[mrp] addon Odoo |
|||
|
|||
Installation |
|||
============ |
|||
- www.odoo.com/documentation/11.0/setup/install.html |
|||
- Install our custom addon |
|||
|
|||
License |
|||
======= |
|||
GNU LESSER GENERAL PUBLIC LICENSE, Version 3 (LGPLv3) |
|||
(http://www.gnu.org/licenses/agpl.html) |
|||
|
|||
Bug Tracker |
|||
=========== |
|||
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
|||
|
|||
Authors |
|||
------- |
|||
* Faslu <faslu@cybrosys.in> |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
This module is maintained by Cybrosys Technologies. |
|||
|
|||
For support and more information, please visit https://www.cybrosys.com. |
@ -0,0 +1,2 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
@ -0,0 +1,41 @@ |
|||
# -*- coding: utf-8 -*- |
|||
################################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>). |
|||
# Author: fasluca(<https://www.cybrosys.com>) |
|||
# |
|||
# This program is free software: you can modify |
|||
# it under the terms of the GNU Affero General Public License (AGPL) as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
################################################################################### |
|||
|
|||
{ |
|||
'name': 'Print Work Order Details', |
|||
'summary': """Generate PDF Report of Work Order""", |
|||
'version': '11.0.1.0.0', |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': "https://cybrosys.com/", |
|||
'category': 'Manufacturing', |
|||
'depends': ['mrp'], |
|||
'license': 'AGPL-3', |
|||
'data': [ |
|||
'views/report_work_order.xml', |
|||
], |
|||
'demo': [], |
|||
'images': ['static/description/banner.jpg'], |
|||
'installable': True, |
|||
'auto_install': False, |
|||
} |
After Width: | Height: | Size: 128 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 34 KiB |
@ -0,0 +1,62 @@ |
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<h2 class="oe_slogan">Print Work Order Details</h2> |
|||
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a></h4> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<h3 class="oe_slogan"> |
|||
Generate PDF Report of Work Order |
|||
</h3> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_picture"> |
|||
<h3 class="oe_slogan">Overview</h3> |
|||
<p class="oe_mt32 text-justify" style="text-align: center;"> |
|||
Generate a PDF report with all necessary details of a Work Order. It can be used for the internal purposes of the plant/work center |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div> |
|||
<div class="oe_demo oe_picture oe_screenshot"> |
|||
<img src="wo_pdf.png"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2> |
|||
<div class="oe_slogan" style="margin-top:10px !important;"> |
|||
<div> |
|||
<a class="btn btn-primary btn-lg mt8" |
|||
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i |
|||
class="fa fa-envelope"></i> Email </a> <a |
|||
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" |
|||
href="https://www.cybrosys.com/contact/"><i |
|||
class="fa fa-phone"></i> Contact Us </a> <a |
|||
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" |
|||
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i |
|||
class="fa fa-check-square"></i> Request Customization </a> |
|||
</div> |
|||
<br> |
|||
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block"> |
|||
<div> |
|||
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td> |
|||
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td> |
|||
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td> |
|||
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td> |
|||
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
After Width: | Height: | Size: 42 KiB |
@ -0,0 +1,100 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<template id="report_workorder"> |
|||
<t t-call="web.html_container"> |
|||
<t t-foreach="docs" t-as="o"> |
|||
<t t-call="web.internal_layout"> |
|||
<div class="page"> |
|||
<div class="oe_structure"/> |
|||
<div class="row"> |
|||
<div class="col-xs-12"> |
|||
<h3>Work Order to : <span t-field="o.workcenter_id.name"/></h3> |
|||
</div><br/> |
|||
</div> |
|||
<table class="table table-condensed"> |
|||
<tr> |
|||
<td class="col-xs-3"><strong>Manufacturing Order</strong></td> |
|||
<td class="col-xs-3"><strong>Product</strong></td> |
|||
<td class="col-xs-3"><strong>Quantity Producing</strong></td> |
|||
<td class="col-xs-3"><strong>Quantity Produced</strong></td> |
|||
</tr> |
|||
<tr> |
|||
<td class="col-xs-3"><span t-field="o.production_id.name"/></td> |
|||
<td class="col-xs-3"> |
|||
<span t-field="o.product_id.default_code"/> |
|||
<span t-field="o.product_id.name"/></td> |
|||
<td class="col-xs-3"> |
|||
<span t-field="o.qty_producing"/> |
|||
<span t-field="o.product_uom_id.name" groups="product.group_uom"/></td> |
|||
<td class="col-xs-3"> |
|||
<span t-field="o.qty_produced"/>/<span t-field="o.qty_producing"/> |
|||
<span t-field="o.product_uom_id.name" groups="product.group_uom"/></td> |
|||
</tr> |
|||
</table> |
|||
<table class="table table-condensed"> |
|||
<tr> |
|||
<td class="col-xs-3"><strong>Planned Date</strong></td> |
|||
<td class="col-xs-3"><strong>Expected Duration</strong></td> |
|||
<td class="col-xs-3"><strong>Real Duration</strong></td> |
|||
<td class="col-xs-3"></td> |
|||
</tr> |
|||
<tr> |
|||
<td class="col-xs-3"><span t-field="o.date_planned_start"/></td> |
|||
<td class="col-xs-3"><span t-field="o.duration_expected"/></td> |
|||
<td class="col-xs-3"><span t-field="o.duration"/></td> |
|||
<td class="col-xs-3"></td> |
|||
</tr> |
|||
</table> |
|||
<div t-if="o.active_move_line_ids"> |
|||
<h4>Lots Consumption Details</h4> |
|||
<table class="table table-condensed"> |
|||
<tr> |
|||
<td class="text-center"><strong>Product</strong></td> |
|||
<td class="text-center"><strong>To Consume</strong></td> |
|||
<td class="text-center"><strong>Lots</strong></td> |
|||
<td class="text-center"><strong>Done</strong></td> |
|||
</tr> |
|||
<tr t-foreach="o.active_move_line_ids" t-as="line"> |
|||
<td class="text-center"><span t-field="line.product_id.default_code"/><span t-field="line.product_id.name"/></td> |
|||
<td class="text-center"><span t-field="line.product_uom_qty"/></td> |
|||
<td class="text-center"><span t-field="line.lot_id.name"/></td> |
|||
<td class="text-center"><span t-field="line.qty_done"/></td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
<div t-if="o.time_ids"> |
|||
<h4>Time Tracking</h4> |
|||
<table class="table table-condensed"> |
|||
<tr> |
|||
<td class="text-center"><strong>Start Time</strong></td> |
|||
<td class="text-center"><strong>End Time</strong></td> |
|||
<td class="text-center"><strong>Duration</strong></td> |
|||
<td class="text-center"><strong>User</strong></td> |
|||
<td class="text-center"><strong>Efficiency</strong></td> |
|||
</tr> |
|||
<tr t-foreach="o.time_ids" t-as="time"> |
|||
<td class="text-center"><span t-field="time.date_start"/></td> |
|||
<td class="text-center"><span t-field="time.date_end"/></td> |
|||
<td class="text-center"><span t-field="time.duration"/></td> |
|||
<td class="text-center"><span t-field="time.user_id.name"/></td> |
|||
<td class="text-center"><span t-field="time.loss_id.name"/></td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
</t> |
|||
</t> |
|||
</template> |
|||
|
|||
<data> |
|||
<report |
|||
string="Work Order Details" |
|||
id="action_report_work_order" |
|||
model="mrp.workorder" |
|||
name="mrp_work_order_print.report_workorder" |
|||
file="mrp_work_order_print.report.report_work_order" |
|||
report_type="qweb-pdf" |
|||
/> |
|||
</data> |
|||
</odoo> |
Loading…
Reference in new issue