Browse Source

Dec 26 : [FIX] Bug Fixed 'manufacturing_reports'

pull/254/merge
RisvanaCybro 1 year ago
parent
commit
18b486707d
  1. 8
      manufacturing_reports/README.rst
  2. 6
      manufacturing_reports/__manifest__.py
  3. 2
      manufacturing_reports/doc/RELEASE_NOTES.md
  4. 1
      manufacturing_reports/report/mrp_report_reports.xml
  5. 7
      manufacturing_reports/report/mrp_report_templates.xml
  6. BIN
      manufacturing_reports/static/description/assets/modules/01.png
  7. BIN
      manufacturing_reports/static/description/assets/modules/02.png
  8. BIN
      manufacturing_reports/static/description/assets/modules/03.png
  9. BIN
      manufacturing_reports/static/description/assets/modules/04.png
  10. BIN
      manufacturing_reports/static/description/assets/modules/05.png
  11. BIN
      manufacturing_reports/static/description/assets/modules/06.png
  12. BIN
      manufacturing_reports/static/description/assets/modules/budget_image.png
  13. BIN
      manufacturing_reports/static/description/assets/modules/credit_image.png
  14. BIN
      manufacturing_reports/static/description/assets/modules/employee_image.png
  15. BIN
      manufacturing_reports/static/description/assets/modules/export_image.png
  16. BIN
      manufacturing_reports/static/description/assets/modules/gantt_image.png
  17. BIN
      manufacturing_reports/static/description/assets/modules/quotation_image.png
  18. 25
      manufacturing_reports/static/description/index.html
  19. 3
      manufacturing_reports/wizard/manufacturing_report.py
  20. 3
      manufacturing_reports/wizard/manufacturing_report_views.xml

8
manufacturing_reports/README.rst

@ -1,5 +1,5 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg .. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
Manufacturing Reports Manufacturing Reports
@ -8,10 +8,6 @@ This module allow to manage manufacturing reports.
Configuration Configuration
============= =============
* No additional configurations needed
Installation
============
- www.odoo.com/documentation/15.0/setup/install.html - www.odoo.com/documentation/15.0/setup/install.html
- Install our custom addon - Install our custom addon

6
manufacturing_reports/__manifest__.py

@ -22,15 +22,14 @@
{ {
'name': 'Manufacturing Reports', 'name': 'Manufacturing Reports',
'version': '15.0.1.0.0', 'version': '15.0.1.0.0',
'category': 'Manufacturing',
'summary': 'PDF & XLS Reports For Manufacturing Module', 'summary': 'PDF & XLS Reports For Manufacturing Module',
'description': 'Advanced filters for PDF and XLS reports for ' 'description': 'Advanced filters for PDF and XLS reports for '
'manufacturing module', 'manufacturing module',
'category': 'Manufacturing',
'author': 'Cybrosys Techno Solutions', 'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions', 'maintainer': 'Cybrosys Techno Solutions',
'website': "http://www.cybrosys.com", 'website': "http://www.cybrosys.com",
'images': ['static/description/banner.png'],
'company': 'Cybrosys Techno Solutions',
'depends': ['base', 'mrp'], 'depends': ['base', 'mrp'],
'data': [ 'data': [
'security/ir.model.access.csv', 'security/ir.model.access.csv',
@ -43,6 +42,7 @@
'manufacturing_reports/static/src/js/action_manager.js', 'manufacturing_reports/static/src/js/action_manager.js',
] ]
}, },
'images': ['static/description/banner.png'],
'license': 'AGPL-3', 'license': 'AGPL-3',
'installable': True, 'installable': True,
'auto_install': False, 'auto_install': False,

2
manufacturing_reports/doc/RELEASE_NOTES.md

@ -1,6 +1,6 @@
## Module <manufacturing_reports> ## Module <manufacturing_reports>
#### 23.08.2023 #### 30.11.2023
#### Version 15.0.1.0.0 #### Version 15.0.1.0.0
##### ADD ##### ADD
- Initial commit for Manufacturing Reports - Initial commit for Manufacturing Reports

1
manufacturing_reports/report/mrp_report_reports.xml

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<odoo> <odoo>
<!--Manufacturing Report Action-->
<record id="action_report_mrp" model="ir.actions.report"> <record id="action_report_mrp" model="ir.actions.report">
<field name="name">Manufacturing Report</field> <field name="name">Manufacturing Report</field>
<field name="model">manufacturing.report</field> <field name="model">manufacturing.report</field>

7
manufacturing_reports/report/mrp_report_templates.xml

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<odoo> <odoo>
<!--Manufacturing Report Template-->
<template id="report_mrp"> <template id="report_mrp">
<t t-call="web.html_container"> <t t-call="web.html_container">
<t t-call="web.external_layout"> <t t-call="web.external_layout">
@ -13,12 +14,6 @@
<t t-esc="date_from"/> <t t-esc="date_from"/>
</p> </p>
</t> </t>
<t t-if="stage">
<p>
<strong>State :</strong>
<t t-esc="stage"/>
</p>
</t>
<table class="table table-sm table-striped mt-4"> <table class="table table-sm table-striped mt-4">
<thead> <thead>
<tr> <tr>

BIN
manufacturing_reports/static/description/assets/modules/01.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
manufacturing_reports/static/description/assets/modules/02.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
manufacturing_reports/static/description/assets/modules/03.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
manufacturing_reports/static/description/assets/modules/04.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
manufacturing_reports/static/description/assets/modules/05.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
manufacturing_reports/static/description/assets/modules/06.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
manufacturing_reports/static/description/assets/modules/budget_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

BIN
manufacturing_reports/static/description/assets/modules/credit_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

BIN
manufacturing_reports/static/description/assets/modules/employee_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

BIN
manufacturing_reports/static/description/assets/modules/export_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

BIN
manufacturing_reports/static/description/assets/modules/gantt_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

BIN
manufacturing_reports/static/description/assets/modules/quotation_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

25
manufacturing_reports/static/description/index.html

@ -13,7 +13,6 @@
style="background-color: #875A7B !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;"> style="background-color: #875A7B !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Enterprise <i class="fa fa-check mr-1"></i>Enterprise
</div> </div>
</div> </div>
</div> </div>
</div> </div>
@ -233,58 +232,58 @@
<div class="carousel-inner"> <div class="carousel-inner">
<div class="carousel-item active" style="min-height:0px"> <div class="carousel-item active" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/export_stockinfo_xls/" target="_blank"> <a href="https://apps.odoo.com/apps/modules/15.0/manufacturing_timesheet/" target="_blank">
<div style="border-radius:10px"> <div style="border-radius:10px">
<img class="img img-responsive center-block" <img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px" style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/export_image.png"> src="assets/modules/01.png">
</div> </div>
</a> </a>
</div> </div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/custom_gantt_view/" target="_blank"> <a href="https://apps.odoo.com/apps/modules/15.0/bom_multiple_product/" target="_blank">
<div style="border-radius:10px"> <div style="border-radius:10px">
<img class="img img-responsive center-block" <img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px" style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/gantt_image.png"> src="assets/modules/02.png">
</div> </div>
</a> </a>
</div> </div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/sales_credit_limit/" target="_blank"> <a href="https://apps.odoo.com/apps/modules/15.0/simple_mrp_order/" target="_blank">
<div style="border-radius:10px"> <div style="border-radius:10px">
<img class="img img-responsive center-block" <img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px" style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/credit_image.png"> src="assets/modules/03.png">
</div> </div>
</a> </a>
</div> </div>
</div> </div>
<div class="carousel-item" style="min-height:0px"> <div class="carousel-item" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/base_account_budget/" target="_blank"> <a href="https://apps.odoo.com/apps/modules/15.0/serial_no_from_mo/" target="_blank">
<div style="border-radius:10px"> <div style="border-radius:10px">
<img class="img img-responsive center-block" <img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px" style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/budget_image.png"> src="assets/modules/04.png">
</div> </div>
</a> </a>
</div> </div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/product_to_quotation/" target="_blank"> <a href="https://apps.odoo.com/apps/modules/15.0/cancel_mrp_order/" target="_blank">
<div style="border-radius:10px"> <div style="border-radius:10px">
<img class="img img-responsive center-block" <img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px" style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/quotation_image.png"> src="assets/modules/05.png">
</div> </div>
</a> </a>
</div> </div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/employee_documents_expiry/" target="_blank"> <a href="https://apps.odoo.com/apps/modules/15.0/cw_mrp/" target="_blank">
<div style="border-radius:10px"> <div style="border-radius:10px">
<img class="img img-responsive center-block" <img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px" style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/employee_image.png"> src="assets/modules/06.png">
</div> </div>
</a> </a>
</div> </div>

3
manufacturing_reports/wizard/manufacturing_report.py

@ -148,9 +148,6 @@ class ManufacturingReport(models.TransientModel):
if data['date_from']: if data['date_from']:
sheet.write('B6', 'From:', cell_format) sheet.write('B6', 'From:', cell_format)
sheet.merge_range('C6:D6', data['date_from'], txt_head) sheet.merge_range('C6:D6', data['date_from'], txt_head)
if data['state']:
sheet.write('B7', 'State:', cell_format)
sheet.merge_range('C7:D7', data['state'], txt_head)
row = 9 row = 9
col = 2 col = 2
sheet.write(row, col, 'Reference', cell_format) sheet.write(row, col, 'Reference', cell_format)

3
manufacturing_reports/wizard/manufacturing_report_views.xml

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<odoo> <odoo>
<!--Manufacturing Report Form View-->
<record id="manufacturing_report_view_form" model="ir.ui.view"> <record id="manufacturing_report_view_form" model="ir.ui.view">
<field name="name">manufacturing.report.view.form</field> <field name="name">manufacturing.report.view.form</field>
<field name="model">manufacturing.report</field> <field name="model">manufacturing.report</field>
@ -27,6 +28,7 @@
</form> </form>
</field> </field>
</record> </record>
<!--Manufacturing Report Action-->
<record id="manufacturing_report_action" model="ir.actions.act_window"> <record id="manufacturing_report_action" model="ir.actions.act_window">
<field name="name">MRP Report</field> <field name="name">MRP Report</field>
<field name="type">ir.actions.act_window</field> <field name="type">ir.actions.act_window</field>
@ -34,6 +36,7 @@
<field name="view_mode">form</field> <field name="view_mode">form</field>
<field name="target">new</field> <field name="target">new</field>
</record> </record>
<!--Manufacturing Report Menu Item-->
<menuitem id="manufacturing_report_menu" parent="mrp.menu_mrp_reporting" name="Manufacturing Reports" <menuitem id="manufacturing_report_menu" parent="mrp.menu_mrp_reporting" name="Manufacturing Reports"
action="manufacturing_report_action" sequence="5" groups="mrp.group_mrp_manager"/> action="manufacturing_report_action" sequence="5" groups="mrp.group_mrp_manager"/>
</odoo> </odoo>

Loading…
Cancel
Save