Browse Source

May 08: [FIX] Bug Fixed 'manufacturing_reports'

pull/317/head
RisvanaCybro 12 months ago
parent
commit
f67cae138d
  1. 2
      manufacturing_reports/__manifest__.py
  2. 2
      manufacturing_reports/security/ir.model.access.csv
  3. 4
      manufacturing_reports/wizards/mrp_report.py
  4. 4
      manufacturing_reports/wizards/mrp_report_views.xml

2
manufacturing_reports/__manifest__.py

@ -21,7 +21,7 @@
#############################################################################
{
'name': 'Manufacturing Reports',
'version': '17.0.1.0.0',
'version': '17.0.1.0.1',
'category': 'Manufacturing',
'summary': 'PDF & XLS Reports For Manufacturing Module',
'description': 'PDF & XLS reports for manufacturing module with '

2
manufacturing_reports/security/ir.model.access.csv

@ -1,2 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_mrp_report,access.mrp.report,model_mrp_report,base.group_user,1,1,1,1
access_mrp_report_wizard,access.mrp.report.wizard,model_mrp_report_wizard,base.group_user,1,1,1,1

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_mrp_report access_mrp_report_wizard access.mrp.report access.mrp.report.wizard model_mrp_report model_mrp_report_wizard base.group_user 1 1 1 1

4
manufacturing_reports/wizards/mrp_report.py

@ -27,7 +27,7 @@ from odoo.tools.safe_eval import json
class MrpReport(models.TransientModel):
_name = 'mrp.report'
_name = 'mrp.report.wizard'
_description = 'MRP Report'
filter = fields.Boolean(string='Enable filter by date')
@ -91,7 +91,7 @@ class MrpReport(models.TransientModel):
return {
'type': 'ir.actions.report',
'data': {
'model': 'mrp.report',
'model': 'mrp.report.wizard',
'options': json.dumps(data, default=date_utils.json_default),
'output_format': 'xlsx',
'report_name': 'Manufacturing Report', },

4
manufacturing_reports/wizards/mrp_report_views.xml

@ -4,14 +4,14 @@
<record id="mrp_report_action" model="ir.actions.act_window">
<field name="name">MRP Report</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.report</field>
<field name="res_model">mrp.report.wizard</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<!-- Wizard Form View -->
<record id="mrp_report_view_form" model="ir.ui.view">
<field name="name">MRP Report</field>
<field name="model">mrp.report</field>
<field name="model">mrp.report.wizard</field>
<field name="arch" type="xml">
<form string="MRP Report">
<group>

Loading…
Cancel
Save