summaryrefslogtreecommitdiff
path: root/addons/mrp/wizard
diff options
context:
space:
mode:
authorfka-odoo <fka@openerp.com>2015-02-10 14:59:32 +0530
committerRichard Mathot <rim@odoo.com>2015-03-09 21:52:32 +0100
commit4da3faa5b74edeb8eeddfdf41b6e2a6d8ef4fb2b (patch)
tree6ba2dfbb6f43a8919643d241a6c4d900a5f3bdcd /addons/mrp/wizard
parentb5f3656518c3505cdf9da8efe79aeedfa9b27463 (diff)
[REM] base,mrp: remove deprecated XSL reports
Diffstat (limited to 'addons/mrp/wizard')
-rw-r--r--addons/mrp/wizard/__init__.py1
-rw-r--r--addons/mrp/wizard/mrp_price.py53
-rw-r--r--addons/mrp/wizard/mrp_price_view.xml32
3 files changed, 0 insertions, 86 deletions
diff --git a/addons/mrp/wizard/__init__.py b/addons/mrp/wizard/__init__.py
index ef1726fd9ae..bf960861994 100644
--- a/addons/mrp/wizard/__init__.py
+++ b/addons/mrp/wizard/__init__.py
@@ -20,6 +20,5 @@
##############################################################################
import mrp_product_produce
-import mrp_price
import change_production_qty
import stock_move
diff --git a/addons/mrp/wizard/mrp_price.py b/addons/mrp/wizard/mrp_price.py
deleted file mode 100644
index f3e8b2cd267..00000000000
--- a/addons/mrp/wizard/mrp_price.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-##############################################################################
-
-from openerp.osv import fields, osv
-
-class mrp_price(osv.osv_memory):
- _name = 'mrp.product_price'
- _description = 'Product Price'
- _columns = {
- 'number': fields.integer('Quantity', required=True, help="Specify quantity of products to produce or buy. Report of Cost structure will be displayed base on this quantity."),
- }
- _defaults = {
- 'number': 1,
- }
-
- def print_report(self, cr, uid, ids, context=None):
- """ To print the report of Product cost structure
- @param self: The object pointer.
- @param cr: A database cursor
- @param uid: ID of the user currently logged in
- @param context: A standard dictionary
- @return : Report
- """
- if context is None:
- context = {}
- datas = {'ids' : context.get('active_ids',[])}
- res = self.read(cr, uid, ids, ['number'])
- res = res and res[0] or {}
- datas['form'] = res
-
- return {
- 'type' : 'ir.actions.report.xml',
- 'report_name':'product.price',
- 'datas' : datas,
- }
diff --git a/addons/mrp/wizard/mrp_price_view.xml b/addons/mrp/wizard/mrp_price_view.xml
deleted file mode 100644
index a326fc6dbc0..00000000000
--- a/addons/mrp/wizard/mrp_price_view.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<openerp>
- <data>
-
- <!-- Product Cost Structure Report -->
-
- <record id="view_mrp_product_price_wizard" model="ir.ui.view">
- <field name="name">Product Cost Structure</field>
- <field name="model">mrp.product_price</field>
- <field name="arch" type="xml">
- <form string="Product Cost Structure">
- <group string="Print Cost Structure of Product.">
- <field name="number"/>
- </group>
- <footer>
- <button name="print_report" type="object" string="Print" class="oe_highlight"/>
- or
- <button string="Cancel" class="oe_link" special="cancel" />
- </footer>
- </form>
- </field>
- </record>
-
- <act_window name="Product Cost Structure"
- res_model="mrp.product_price"
- src_model="product.product"
- view_mode="form"
- target="new"
- key2="client_print_multi"
- id="action_view_mrp_product_price_wizard"/>
- </data>
-</openerp>