From d95103af72b4bf377fd61feefbb943bb88feca62 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Wed, 17 Feb 2010 16:16:52 +0100 Subject: [PATCH] [IMP] stock: Change the layouts of some objects bzr revid: stephane@openerp.com-20100217151652-smdkqj3fruskyrzr --- addons/stock/stock.py | 6 +-- addons/stock/stock_view.xml | 90 ++++++++++++------------------------- 2 files changed, 32 insertions(+), 64 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 28fe9842361..b7e43705fd1 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -451,7 +451,7 @@ class stock_picking(osv.osv): _columns = { 'name': fields.char('Reference', size=64, select=True), - 'origin': fields.char('Source document', size=64, help="Reference of the document that produced this picking."), + 'origin': fields.char('Origin', size=64, help="Reference of the document that produced this picking."), 'backorder_id': fields.many2one('stock.picking', 'Back Order', help="If the picking is splitted then the picking id in available state of move for this picking is stored in Backorder."), 'type': fields.selection([('out', 'Sending Goods'), ('in', 'Getting Goods'), ('internal', 'Internal'), ('delivery', 'Delivery')], 'Shipping Type', required=True, select=True, help="Shipping type specify, goods coming in or going out."), 'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the picking without removing it."), @@ -476,7 +476,7 @@ class stock_picking(osv.osv): \n* The \'Waiting\' state is used in MTO moves when a movement is waiting for another one.'), 'min_date': fields.function(get_min_max_date, fnct_inv=_set_minimum_date, multi="min_max_date", method=True, store=True, type='datetime', string='Planned Date', select=1, help="Planned date for Picking. Default it takes current date"), - 'date': fields.datetime('Date Order', help="Date of Order"), + 'date': fields.datetime('Order Date', help="Date of Order"), 'date_done': fields.datetime('Date Done', help="Date of completion"), 'max_date': fields.function(get_min_max_date, fnct_inv=_set_maximum_date, multi="min_max_date", method=True, store=True, type='datetime', string='Max. Planned Date', select=2), @@ -1090,7 +1090,7 @@ class stock_move(osv.osv): 'company_id': fields.many2one('res.company', 'Company', required=True,select=1), 'partner_id': fields.related('picking_id','address_id','partner_id',type='many2one', relation="res.partner", string="Partner"), 'backorder_id': fields.related('picking_id','backorder_id',type='many2one', relation="stock.picking", string="Back Orders"), - 'origin': fields.related('picking_id','origin',type='char', size=64, relation="stock.picking", string="Source document"), + 'origin': fields.related('picking_id','origin',type='char', size=64, relation="stock.picking", string="Origin"), 'move_stock_return_history': fields.many2many('stock.move', 'stock_move_return_history', 'move_id', 'return_move_id', 'Move Return History',readonly=True), } _constraints = [ diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index 140ecb1a461..6d1c0cec690 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -8,9 +8,6 @@ - ============================= - Inventory Line - ============================= stock.inventory.line.tree stock.inventory.line @@ -41,9 +38,6 @@ - ============================= - Inventory - ============================= stock.inventory.tree stock.inventory @@ -119,10 +113,6 @@ - ============================= - Lot - ============================= - stock.tracking.form stock.tracking @@ -347,11 +337,6 @@ - - - ============================= - Location - ============================= stock.location.form stock.location @@ -430,9 +415,6 @@ - ============================= - Warehouse - ============================= stock.warehouse stock.warehouse @@ -472,9 +454,6 @@ - ============================== - Wizard to Fill From Unreceived Products - =============================== stock.picking.move.wizard.form stock.picking.move.wizard @@ -504,9 +483,6 @@ - ============================= - Picking - ============================= Split Production Lots stock.split.production.lots @@ -664,20 +640,16 @@ - + - - - + + + - # - # Delivery Orders - # - stock.picking.delivery.tree stock.picking @@ -790,13 +762,13 @@ - + - - - + + + @@ -995,15 +967,17 @@ stock.picking tree - + - + +