From 6e28a973fda763b8c9e8ba102b43cf57c14188f5 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Wed, 17 Feb 2010 17:23:42 +0100 Subject: [PATCH] [IMP] stock: Improvements in the layout of some screens bzr revid: stephane@openerp.com-20100217162342-4nrjfon0szy9c9df --- addons/stock/report_stock.py | 2 + addons/stock/report_stock_view.xml | 40 ++++++++++++++++++- addons/stock/stock_view.xml | 64 ++++++++++++++++++++---------- 3 files changed, 84 insertions(+), 22 deletions(-) diff --git a/addons/stock/report_stock.py b/addons/stock/report_stock.py index 15187b0e7e2..37275d271cb 100644 --- a/addons/stock/report_stock.py +++ b/addons/stock/report_stock.py @@ -21,6 +21,7 @@ from osv import osv, fields from tools.translate import _ +import tools # # Check if it works with UoM ??? @@ -37,6 +38,7 @@ class stock_report_prodlots(osv.osv): } def init(self, cr): + tools.drop_view_if_exists(cr, 'stock_report_prodlots') cr.execute(""" create or replace view stock_report_prodlots as ( select max(id) as id, diff --git a/addons/stock/report_stock_view.xml b/addons/stock/report_stock_view.xml index fd0cf3f60cd..645143b4546 100644 --- a/addons/stock/report_stock_view.xml +++ b/addons/stock/report_stock_view.xml @@ -2,6 +2,43 @@ + + stock.report.prodlots.filter + stock.report.prodlots + search + + + + + + + + + + + + + + + + + + + + + stock.report.prodlots.view + stock.report.prodlots + form + +
+ + + + + + +
+ stock.report.prodlots.view stock.report.prodlots @@ -15,6 +52,7 @@ + Locations ir.actions.act_window @@ -22,6 +60,7 @@ form tree,form {'full':'1'} + @@ -39,7 +78,6 @@ - + + stock.inventory.filter + stock.inventory + search + + + + + + + + + + stock.inventory.tree stock.inventory tree - + @@ -101,6 +115,7 @@ form {'full':'1'} + @@ -632,16 +647,18 @@ search - - + + + + - + @@ -663,6 +680,8 @@ +