From 3eeb395e2405b2c2ea97943ccce533bba8e88784 Mon Sep 17 00:00:00 2001 From: Cedric Snauwaert Date: Mon, 23 Sep 2013 16:53:01 +0200 Subject: [PATCH] [FIX]rename some label and use a radio widget as filter for new inventory bzr revid: csn@openerp.com-20130923145301-m10zd239g5jitmn3 --- addons/stock/stock.py | 3 +- addons/stock/stock_view.xml | 41 +++++++++++++++---- addons/stock_location/stock_location_view.xml | 5 ++- 3 files changed, 38 insertions(+), 11 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index a44113acf26..4efc81d7bd6 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1812,7 +1812,7 @@ class stock_inventory(osv.osv): _columns = { 'name': fields.char('Inventory Reference', size=64, required=True, readonly=True, states={'draft': [('readonly', False)]}, help="Inventory Name."), - 'date': fields.datetime('Creation Date', required=True, readonly=True, states={'draft': [('readonly', False)]}, help="Inventory Create Date."), + 'date': fields.datetime('Inventory Date', required=True, readonly=True, states={'draft': [('readonly', False)]}, help="Inventory Create Date."), 'date_done': fields.datetime('Date done', help="Inventory Validation Date."), 'line_ids': fields.one2many('stock.inventory.line', 'inventory_id', 'Inventories', readonly=False, states={'done': [('readonly', True)]}, help="Inventory Lines."), 'move_ids': fields.one2many('stock.move', 'inventory_id', 'Created Moves', help="Inventory Moves."), @@ -1824,6 +1824,7 @@ class stock_inventory(osv.osv): 'partner_id': fields.many2one('res.partner', 'Owner', readonly=True, states={'draft': [('readonly', False)]}, help="Specify Owner to focus your inventory on a particular Owner."), 'lot_id': fields.many2one('stock.production.lot', 'Lot/Serial Number', readonly=True, states={'draft': [('readonly', False)]}, help="Specify Lot/Serial Number to focus your inventory on a particular Lot/Serial Number."), 'move_ids_exist': fields.function(_get_move_ids_exist, type='boolean', string=' Stock Move Exists?', help='technical field for attrs in view'), + 'filter': fields.selection([('product', 'Product'), ('owner', 'Owner'), ('product_owner','Product & Owner'), ('lot','Lot/Serial Number'), ('pack','Pack'), ('none', 'None')], 'Selection Filter'), } def _default_stock_location(self, cr, uid, context=None): diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index a1084e603a4..95d7b1b702a 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -118,16 +118,20 @@ +
Specify filters to focus your inventory a on particular product, lot, pack and product's owner.
- - - + - - + + + + @@ -147,8 +151,27 @@ - - + + + + + + + + + + +