diff --git a/manufacturing_reports/__manifest__.py b/manufacturing_reports/__manifest__.py index 0edb577bf..d0d1f0c98 100644 --- a/manufacturing_reports/__manifest__.py +++ b/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 ' diff --git a/manufacturing_reports/security/ir.model.access.csv b/manufacturing_reports/security/ir.model.access.csv index a21f91726..468471dfc 100644 --- a/manufacturing_reports/security/ir.model.access.csv +++ b/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 diff --git a/manufacturing_reports/wizards/mrp_report.py b/manufacturing_reports/wizards/mrp_report.py index 7c8cde8d0..3dc0db295 100644 --- a/manufacturing_reports/wizards/mrp_report.py +++ b/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', }, diff --git a/manufacturing_reports/wizards/mrp_report_views.xml b/manufacturing_reports/wizards/mrp_report_views.xml index 6afc09c1d..795a51705 100644 --- a/manufacturing_reports/wizards/mrp_report_views.xml +++ b/manufacturing_reports/wizards/mrp_report_views.xml @@ -4,14 +4,14 @@ MRP Report ir.actions.act_window - mrp.report + mrp.report.wizard form new MRP Report - mrp.report + mrp.report.wizard