From fff2201d3f5af0081b2bed319c13f92dfc81276e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 10 Aug 2016 13:06:02 +0200 Subject: [PATCH] [MOV] mrp: rename report files according to guidelines --- addons/mrp/__openerp__.py | 4 ++-- addons/mrp/report/__init__.py | 6 +++--- addons/mrp/report/{bom_cost.py => mrp_bom_cost_report.py} | 2 +- .../{bom_cost.xml => mrp_bom_cost_report_templates.xml} | 2 +- .../{bom_structure.py => mrp_bom_structure_report.py} | 2 +- ...templates.xml => mrp_bom_structure_report_templates.xml} | 2 +- addons/mrp/report/mrp_report_views_main.xml | 1 + 7 files changed, 10 insertions(+), 9 deletions(-) rename addons/mrp/report/{bom_cost.py => mrp_bom_cost_report.py} (96%) rename addons/mrp/report/{bom_cost.xml => mrp_bom_cost_report_templates.xml} (98%) rename addons/mrp/report/{bom_structure.py => mrp_bom_structure_report.py} (94%) rename addons/mrp/report/{mrp_bom_templates.xml => mrp_bom_structure_report_templates.xml} (98%) diff --git a/addons/mrp/__openerp__.py b/addons/mrp/__openerp__.py index 83b9c4d187b..ccd6ba1de3c 100644 --- a/addons/mrp/__openerp__.py +++ b/addons/mrp/__openerp__.py @@ -63,8 +63,8 @@ Dashboard / Reports for MRP will include: 'report/mrp_report_views_main.xml', 'report/mrp_report_views.xml', 'report/mrp_production_templates.xml', - 'report/mrp_bom_templates.xml', - 'report/bom_cost.xml', + 'report/mrp_bom_structure_report_templates.xml', + 'report/mrp_bom_cost_report_templates.xml', ], 'demo': [ 'data/mrp_demo.xml', diff --git a/addons/mrp/report/__init__.py b/addons/mrp/report/__init__.py index 73a73053af1..a3ba4a1f517 100644 --- a/addons/mrp/report/__init__.py +++ b/addons/mrp/report/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import bom_structure -import mrp_report -import bom_cost \ No newline at end of file +import mrp_bom_cost_report +import mrp_bom_structure_report +import mrp_report \ No newline at end of file diff --git a/addons/mrp/report/bom_cost.py b/addons/mrp/report/mrp_bom_cost_report.py similarity index 96% rename from addons/mrp/report/bom_cost.py rename to addons/mrp/report/mrp_bom_cost_report.py index 54cd5ea21b7..acdd977f777 100644 --- a/addons/mrp/report/bom_cost.py +++ b/addons/mrp/report/mrp_bom_cost_report.py @@ -45,4 +45,4 @@ class MrpBomCost(models.AbstractModel): def render_html(self, docids, data=None): boms = self.env['mrp.bom'].browse(docids) res = self.get_lines(boms) - return self.env['report'].render('mrp.mrp_bom_cost', {'lines': res}) + return self.env['report'].render('mrp.mrp_bom_cost_report', {'lines': res}) diff --git a/addons/mrp/report/bom_cost.xml b/addons/mrp/report/mrp_bom_cost_report_templates.xml similarity index 98% rename from addons/mrp/report/bom_cost.xml rename to addons/mrp/report/mrp_bom_cost_report_templates.xml index 3237e55c47a..87de18872bf 100644 --- a/addons/mrp/report/bom_cost.xml +++ b/addons/mrp/report/mrp_bom_cost_report_templates.xml @@ -1,6 +1,6 @@ -