diff --git a/addons/delivery/__init__.py b/addons/delivery/__init__.py
index d277419434a..35705c10cb6 100644
--- a/addons/delivery/__init__.py
+++ b/addons/delivery/__init__.py
@@ -21,7 +21,6 @@
import delivery
import partner
-import report
import sale
import stock
diff --git a/addons/delivery/__openerp__.py b/addons/delivery/__openerp__.py
index 1ee6bf413ec..ab00fa9087e 100644
--- a/addons/delivery/__openerp__.py
+++ b/addons/delivery/__openerp__.py
@@ -35,10 +35,10 @@ invoices from picking, OpenERP is able to add and compute the shipping line.
'depends': ['sale_stock'],
'data': [
'security/ir.model.access.csv',
- 'delivery_report.xml',
'delivery_view.xml',
'partner_view.xml',
- 'delivery_data.xml'
+ 'delivery_data.xml',
+ 'views/report_shipping.xml',
],
'demo': ['delivery_demo.xml'],
'test': ['test/delivery_cost.yml'],
diff --git a/addons/delivery/delivery_report.xml b/addons/delivery/delivery_report.xml
deleted file mode 100644
index 3cebbba4eac..00000000000
--- a/addons/delivery/delivery_report.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/addons/delivery/delivery_view.xml b/addons/delivery/delivery_view.xml
index 055ca985494..6df6cec3ef0 100644
--- a/addons/delivery/delivery_view.xml
+++ b/addons/delivery/delivery_view.xml
@@ -225,10 +225,6 @@
stock.picking
-
-
-
-
diff --git a/addons/delivery/report/__init__.py b/addons/delivery/report/__init__.py
deleted file mode 100644
index 085fa3a3cdc..00000000000
--- a/addons/delivery/report/__init__.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL ().
-#
-# 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 .
-#
-##############################################################################
-
-import shipping
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/delivery/report/shipping.py b/addons/delivery/report/shipping.py
deleted file mode 100644
index 6f313c14b11..00000000000
--- a/addons/delivery/report/shipping.py
+++ /dev/null
@@ -1,46 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL ().
-#
-# 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 .
-#
-##############################################################################
-
-import time
-
-from openerp.report import report_sxw
-
-class shipping(report_sxw.rml_parse):
- def __init__(self, cr, uid, name, context):
- super(shipping, self).__init__(cr, uid, name, context=context)
- self.localcontext.update({
- 'time': time,
- 'get_partner_invoice_info': self.get_partner_invoice_info,
- })
-
- def get_partner_invoice_info(self, origin):
- """This method is used to get information of invoiced partner.
- :param: origin: origin of picking
- :return: tuple contaning partner name and address of invoiced partner
- """
- sale_obj = self.pool.get('sale.order')
- sale_id = sale_obj.search(self.cr, self.uid, [('name', '=', origin)])[0]
- partner_invoice_id = sale_obj.browse(self.cr, self.uid, sale_id).partner_invoice_id
- return partner_invoice_id.name, self.pool.get('res.partner')._display_address(self.cr, self.uid, partner_invoice_id)
-
-report_sxw.report_sxw('report.sale.shipping','stock.picking','addons/delivery/report/shipping.rml',parser=shipping)
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/delivery/report/shipping.rml b/addons/delivery/report/shipping.rml
deleted file mode 100644
index d9d90c1b3bd..00000000000
--- a/addons/delivery/report/shipping.rml
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Description
-
-
- Quantity
-
-
-
-
- [[repeatIn(objects,'o')]]
-
-
-
-
-
-
-
- Invoiced to
- [[ o.origin and get_partner_invoice_info(o.origin)[0] or '' ]]
- [[ o.origin and get_partner_invoice_info(o.origin)[1] or '' ]]
-
-
- [[ o.partner_id and o.partner_id.name or '' ]]
- [[ o.partner_id and display_address(o.partner_id) ]]
-
-
-
- Delivery Order : [[ o.name ]]
-
-
-
-
-
-
- Order Ref.
-
-
- Order Date
-
-
- Shipping Date
-
-
- Carrier
-
-
- Weight
-
-
-
-
-
-
- [[ o.origin or '' ]]
-
-
- [[ formatLang(o.date,date_time=True) ]]
-
-
- [[ formatLang(o.min_date,date_time = True) ]]
-
-
- [[ o.carrier_id and o.carrier_id.name or '' ]]
-
-
- [[ formatLang(o.weight) ]]
-
-
-
-
-
-
-
-
-
- Description
-
-
- Quantity
-
-
-
-
- [[repeatIn(o.move_lines,'line')]]
-
-
-
- [[line.product_id.code ]] [[ line.product_id and line.product_id.name or '']]
-
-
- [[ formatLang(line.product_qty) ]] [[ line.product_uom and line.product_uom.name ]]
-