[MOV] mrp: rename report files according to guidelines
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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
-1
@@ -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
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user