[MOV] mrp: rename report files according to guidelines

This commit is contained in:
Thibault Delavallée
2016-08-10 15:48:10 +02:00
parent 52467414a7
commit fff2201d3f
7 changed files with 10 additions and 9 deletions
+2 -2
View File
@@ -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',
+3 -3
View File
@@ -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
import mrp_bom_cost_report
import mrp_bom_structure_report
import mrp_report
@@ -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})
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="mrp_bom_cost">
<template id="mrp_bom_cost_report">
<div class="o_form_view">
<div class="page o_form_sheet_bg">
<div class="o_form_sheet">
@@ -41,4 +41,4 @@ class BomStructureReport(models.AbstractModel):
'get_children': self.get_children,
'data': data,
}
return self.env['report'].render('mrp.report_mrpbomstructure', docargs)
return self.env['report'].render('mrp.mrp_bom_structure_report', docargs)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_mrpbomstructure">
<template id="mrp_bom_structure_report">
<t t-call="report.html_container">
<t t-call="report.internal_layout">
<div class="page">
@@ -18,6 +18,7 @@
file="mrp.report.mrp_production_templates"
report_type="qweb-pdf"
/>
<report
string="BOM Cost"
id="action_report_bom_price"