diff --git a/addons/report_stock/__init__.py b/addons/report_stock/__init__.py
deleted file mode 100644
index 587d4bda4b5..00000000000
--- a/addons/report_stock/__init__.py
+++ /dev/null
@@ -1,34 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
-#
-# $Id$
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-##############################################################################
-
-import report_stock
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/report_stock/__terp__.py b/addons/report_stock/__terp__.py
deleted file mode 100644
index 5e929a4e163..00000000000
--- a/addons/report_stock/__terp__.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright (c) 2004-2008 Tiny SPRL (http://tiny.be) All Rights Reserved.
-#
-# $Id$
-#
-# WARNING: This program as such is intended to be used by professional
-# programmers who take the whole responsability of assessing all potential
-# consequences resulting from its eventual inadequacies and bugs
-# End users who are looking for a ready-to-use solution with commercial
-# garantees and support are strongly adviced to contract a Free Software
-# Service Company
-#
-# This program is Free Software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-###############################################################################
-{
- "name" : "Stock report",
- "version" : "1.0",
- "author" : "Tiny",
- "website" : "http://tinyerp.com/",
- "depends" : ["stock", "product",],
- "category" : "Generic Modules/Inventory Control",
- "description" : """
- This module adds new reports based on the stock module.
-
- It create a new menu to get products by production lots within
- the different locations:
- Inventory Control/Reporting/Traceability/Stock by production lots
- """,
- "init_xml" : [],
- "demo_xml" : [],
- "update_xml" : [
- "security/ir.model.access.csv",
- "report_stock_view.xml",
- ],
- "active": False,
- "installable": True
-}
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
diff --git a/addons/report_stock/i18n/cs_CZ.po b/addons/report_stock/i18n/cs_CZ.po
deleted file mode 100644
index 0d44c666d30..00000000000
--- a/addons/report_stock/i18n/cs_CZ.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:40:34+0000"
-"PO-Revision-Date: 2008-09-11 15:40:34+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/de_DE.po b/addons/report_stock/i18n/de_DE.po
deleted file mode 100644
index 1b01f96bc53..00000000000
--- a/addons/report_stock/i18n/de_DE.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:38:50+0000"
-"PO-Revision-Date: 2008-09-11 15:38:50+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr "Berichtswesen"
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/es_AR.po b/addons/report_stock/i18n/es_AR.po
deleted file mode 100644
index 0bc78208095..00000000000
--- a/addons/report_stock/i18n/es_AR.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:44:00+0000"
-"PO-Revision-Date: 2008-09-11 15:44:00+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr "Trazabilidad"
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/es_ES.po b/addons/report_stock/i18n/es_ES.po
deleted file mode 100644
index d45a406a919..00000000000
--- a/addons/report_stock/i18n/es_ES.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:41:08+0000"
-"PO-Revision-Date: 2008-09-11 15:41:08+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr "Trazabilidad"
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/fr_FR.po b/addons/report_stock/i18n/fr_FR.po
deleted file mode 100644
index 004fb7436f1..00000000000
--- a/addons/report_stock/i18n/fr_FR.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:41:43+0000"
-"PO-Revision-Date: 2008-09-11 15:41:43+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr "Traçabilités"
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr "Reporting"
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/hu_HU.po b/addons/report_stock/i18n/hu_HU.po
deleted file mode 100644
index 1e6f52dadd1..00000000000
--- a/addons/report_stock/i18n/hu_HU.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:44:35+0000"
-"PO-Revision-Date: 2008-09-11 15:44:35+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/it_IT.po b/addons/report_stock/i18n/it_IT.po
deleted file mode 100644
index dcd2b5bf383..00000000000
--- a/addons/report_stock/i18n/it_IT.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:36:31+0000"
-"PO-Revision-Date: 2008-09-11 15:36:31+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr "Tracciatura"
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/nl_NL.po b/addons/report_stock/i18n/nl_NL.po
deleted file mode 100644
index 59be4bb0295..00000000000
--- a/addons/report_stock/i18n/nl_NL.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:40:00+0000"
-"PO-Revision-Date: 2008-09-11 15:40:00+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr "Traceerbaarheid"
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/pt_BR.po b/addons/report_stock/i18n/pt_BR.po
deleted file mode 100644
index be57ec34bdc..00000000000
--- a/addons/report_stock/i18n/pt_BR.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:38:15+0000"
-"PO-Revision-Date: 2008-09-11 15:38:15+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/pt_PT.po b/addons/report_stock/i18n/pt_PT.po
deleted file mode 100644
index 3215555c186..00000000000
--- a/addons/report_stock/i18n/pt_PT.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:42:18+0000"
-"PO-Revision-Date: 2008-09-11 15:42:18+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr "Rastreabilidade"
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/report_stock.pot b/addons/report_stock/i18n/report_stock.pot
deleted file mode 100644
index 4bcbaff4676..00000000000
--- a/addons/report_stock/i18n/report_stock.pot
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:45:09+0000"
-"PO-Revision-Date: 2008-09-11 15:45:09+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/ro_RO.po b/addons/report_stock/i18n/ro_RO.po
deleted file mode 100644
index 6a07f6d5bd1..00000000000
--- a/addons/report_stock/i18n/ro_RO.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:43:26+0000"
-"PO-Revision-Date: 2008-09-11 15:43:26+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/ru_RU.po b/addons/report_stock/i18n/ru_RU.po
deleted file mode 100644
index a66ccd22a49..00000000000
--- a/addons/report_stock/i18n/ru_RU.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:42:52+0000"
-"PO-Revision-Date: 2008-09-11 15:42:52+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/sv_SE.po b/addons/report_stock/i18n/sv_SE.po
deleted file mode 100644
index 897689ceac7..00000000000
--- a/addons/report_stock/i18n/sv_SE.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:39:25+0000"
-"PO-Revision-Date: 2008-09-11 15:39:25+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr "Spårbarhet"
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/zh_CN.po b/addons/report_stock/i18n/zh_CN.po
deleted file mode 100644
index 37d571fb910..00000000000
--- a/addons/report_stock/i18n/zh_CN.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:37:41+0000"
-"PO-Revision-Date: 2008-09-11 15:37:41+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr "追踪"
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr "报表"
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/i18n/zh_TW.po b/addons/report_stock/i18n/zh_TW.po
deleted file mode 100644
index c36eb6837ba..00000000000
--- a/addons/report_stock/i18n/zh_TW.po
+++ /dev/null
@@ -1,75 +0,0 @@
-# Translation of OpenERP Server.
-# This file containt the translation of the following modules:
-# * report_stock
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: OpenERP Server 4.3.0"
-"Report-Msgid-Bugs-To: support@openerp.com"
-"POT-Creation-Date: 2008-09-11 15:37:06+0000"
-"PO-Revision-Date: 2008-09-11 15:37:06+0000"
-"Last-Translator: <>"
-"Language-Team: "
-"MIME-Version: 1.0"
-"Content-Type: text/plain; charset=UTF-8"
-"Content-Transfer-Encoding: "
-"Plural-Forms: "
-
-#. module: report_stock
-#: field:report.stock.prodlots,prodlot_id:0
-msgid "Production lot"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_62
-msgid "Traceability"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.model:0
-msgid "The Object name must start with x_ and not contain any special character !"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.ui.menu,name:report_stock.next_id_61
-msgid "Reporting"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,product_id:0
-msgid "Product"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_product_product_2_report_stock_prodlots
-#: model:ir.actions.act_window,name:report_stock.act_stock_location_2_report_stock_prodlots
-#: model:ir.ui.menu,name:report_stock.menu_report_stock_prodlots
-#: view:report.stock.prodlots:0
-msgid "Stock by production lots"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.actions.act_window,name:report_stock.act_stock_production_lot_2_report_stock_prodlots
-msgid "Stock"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,location_id:0
-msgid "Location"
-msgstr ""
-
-#. module: report_stock
-#: constraint:ir.ui.view:0
-msgid "Invalid XML for View Architecture!"
-msgstr ""
-
-#. module: report_stock
-#: model:ir.model,name:report_stock.model_report_stock_prodlots
-msgid "Stock report by production lots"
-msgstr ""
-
-#. module: report_stock
-#: field:report.stock.prodlots,name:0
-msgid "Quantity"
-msgstr ""
-
diff --git a/addons/report_stock/report_stock_view.xml b/addons/report_stock/report_stock_view.xml
deleted file mode 100644
index 7f1327f36b1..00000000000
--- a/addons/report_stock/report_stock_view.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
-
-
-
- report.stock.prodlots.view
- report.stock.prodlots
- tree
-
-
-
-
-
-
-
-
-
-
-
- Stock by production lots
- ir.actions.act_window
- report.stock.prodlots
- form
- form,tree
-
-
-
-
-
-
-
-
-
-
-
-
-
- report.inventory.latest.view
- report.inventory.latest
- tree
-
-
-
-
-
-
-
-
-
-
-
-
- Latest Inventories by product
- ir.actions.act_window
- report.inventory.latest
- form
- tree
- [('name','>=',time.strftime('%Y-%m-01'))]
-
-
-
-
-
-
diff --git a/addons/report_stock/security/ir.model.access.csv b/addons/report_stock/security/ir.model.access.csv
deleted file mode 100644
index 49fbc195b86..00000000000
--- a/addons/report_stock/security/ir.model.access.csv
+++ /dev/null
@@ -1,2 +0,0 @@
-id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
-access_report_stock_prodlots,report.stock.prodlots,model_report_stock_prodlots,stock.group_stock_user,1,0,0,0
diff --git a/addons/report_stock/report_stock.py b/addons/stock/report_stock.py
similarity index 67%
rename from addons/report_stock/report_stock.py
rename to addons/stock/report_stock.py
index 0ad2f980ec2..36334cc5ddf 100644
--- a/addons/report_stock/report_stock.py
+++ b/addons/stock/report_stock.py
@@ -30,8 +30,11 @@
from osv import osv, fields
-class report_stock_prodlots(osv.osv):
- _name = "report.stock.prodlots"
+#
+# Check if it works with UoM ???
+#
+class stock_report_prodlots(osv.osv):
+ _name = "stock.report.prodlots"
_description = "Stock report by production lots"
_auto = False
_columns = {
@@ -42,7 +45,7 @@ class report_stock_prodlots(osv.osv):
}
def init(self, cr):
cr.execute("""
- create or replace view report_stock_prodlots as (
+ create or replace view stock_report_prodlots as (
select max(id) as id,
location_id,
product_id,
@@ -58,7 +61,6 @@ class report_stock_prodlots(osv.osv):
left join stock_location sl
on (sl.id = sm.location_id)
where state = 'done'
- and sl.usage = 'internal'
group by sm.location_id, sm.product_id, sm.product_uom, sm.prodlot_id
union all
select max(sm.id) as id,
@@ -70,43 +72,9 @@ class report_stock_prodlots(osv.osv):
left join stock_location sl
on (sl.id = sm.location_dest_id)
where sm.state = 'done'
- and sl.usage = 'internal'
group by sm.location_dest_id, sm.product_id, sm.product_uom, sm.prodlot_id
) as report
group by location_id, product_id, prodlot_id
)""")
-report_stock_prodlots()
-
-
-class report_inventory_latest(osv.osv):
- _name = "report.inventory.latest"
- _description = "Latest inventories by product."
- _auto = False
- _columns = {
- 'name': fields.datetime('Latest Date',readonly=True),
- 'product': fields.many2one('product.product', 'Product', readonly=True, select=True),
- 'inventory': fields.many2one('stock.inventory', 'Inventory Name', readonly=True, select=True),
- 'qty': fields.float('Quantity', readonly=True, select=True),
- 'uom' : fields.many2one('product.uom', 'UoM', readonly=True),
-# 'date' : fields.datetime('Latest Date',readonly=True),
- }
- _order = 'name desc'
- def init(self, cr):
- cr.execute("""
- create or replace view report_inventory_latest as (
- select max(l.id) as id,
- l.product_id as product,
- l.product_qty as qty,
- l.product_uom as uom ,
- min(l.inventory_id) as inventory,
- i.date as name
- from stock_inventory_line l
- join stock_inventory i on (l.inventory_id=i.id)
- group by l.product_uom,l.product_qty,l.product_id,i.date
-
- )""")
-report_inventory_latest()
-
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+stock_report_prodlots()
diff --git a/addons/stock/report_stock_view.xml b/addons/stock/report_stock_view.xml
new file mode 100644
index 00000000000..726017a9bf8
--- /dev/null
+++ b/addons/stock/report_stock_view.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+ stock.report.prodlots.view
+ stock.report.prodlots
+ tree
+
+
+
+
+
+
+
+
+
+
+
+ Stock by production lots
+ ir.actions.act_window
+ stock.report.prodlots
+ form
+ form,tree
+
+
+
+
+
+
+
+
+
+
+
+