From bcae22c42abdf9ae107728de224bcc87c07f1025 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Tue, 23 Feb 2010 17:05:50 +0100 Subject: [PATCH] [IMP] hr_expense,mrp,product,stock: Improve the layout of some search and form views bzr revid: stephane@openerp.com-20100223160550-o0b0kkh9yirnuew0 --- addons/hr_expense/hr_expense.py | 2 +- addons/mrp/mrp_view.xml | 51 +++++++-- addons/product/product_view.xml | 13 ++- addons/stock/stock.py | 4 +- addons/stock/stock_view.xml | 185 +++++++++++++++++++------------- 5 files changed, 162 insertions(+), 93 deletions(-) diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py index e270396d122..bb6a4d38577 100644 --- a/addons/hr_expense/hr_expense.py +++ b/addons/hr_expense/hr_expense.py @@ -177,7 +177,7 @@ class product_product(osv.osv): _inherit = "product.product" _columns = { - 'hr_expense_ok': fields.boolean('Can be Expensed', help="Determines if the product can be visible in the list of product within a selection from an HR expense sheet line."), + 'hr_expense_ok': fields.boolean('Can constitute an Expense', help="Determines if the product can be visible in the list of product within a selection from an HR expense sheet line."), } product_product() diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index 6c36b4c6acf..c1c7a005ccb 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -955,23 +955,51 @@ + + + stock.warehouse.orderpoint.search + stock.warehouse.orderpoint + search + + + + + + + + + + + stock.warehouse.orderpoint.form stock.warehouse.orderpoint form
- - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + +
@@ -981,6 +1009,7 @@ ir.actions.act_window form + diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml index 9b13ceaf152..cd222d5efb8 100644 --- a/addons/product/product_view.xml +++ b/addons/product/product_view.xml @@ -11,10 +11,18 @@ + + + + @@ -28,9 +36,10 @@ tree - + + @@ -61,7 +70,7 @@ - + diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 1866bc8dd2a..96b57a676d3 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -356,7 +356,7 @@ class stock_tracking(osv.osv): 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the tracking lots without removing it."), 'serial': fields.char('Reference', size=64), 'move_ids': fields.one2many('stock.move', 'tracking_id', 'Moves Tracked'), - 'date': fields.datetime('Date Created', required=True), + 'date': fields.datetime('Created Date', required=True), } _defaults = { 'active': lambda *a: 1, @@ -993,7 +993,7 @@ class stock_move(osv.osv): 'name': fields.char('Name', size=64, required=True, select=True), 'priority': fields.selection([('0', 'Not urgent'), ('1', 'Urgent')], 'Priority'), - 'date': fields.datetime('Date Created'), + 'date': fields.datetime('Created Date'), 'date_planned': fields.datetime('Date', required=True, help="Scheduled date for the movement of the products or real date if the move is done."), 'product_id': fields.many2one('product.product', 'Product', required=True, select=True), diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index 212bb79ea12..321e8dd371d 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -137,7 +137,7 @@ - + @@ -213,17 +213,17 @@ form
- - - - + + + + - - - - - - + + + + + +
@@ -233,20 +233,46 @@ tree - + + + + + Production Lots Filter + stock.production.lot + search + + + + + + + + + + + + + + + + + + + Production Lots ir.actions.act_window stock.production.lot form + {'full':'1'} @@ -627,7 +653,6 @@ - @@ -1024,9 +1049,6 @@ - # - # Reception of Products - # stock.picking.in.tree stock.picking @@ -1042,7 +1064,7 @@