From 3008d50bdce34d70f6482e4b659cf611e7e60d73 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Wed, 11 Sep 2013 10:56:20 +0200 Subject: [PATCH] [IMP] Add putaway / removal strategies / routes to product category form bzr revid: jco@openerp.com-20130911085620-1fueywtx83jaufxf --- addons/stock_location/stock_location.py | 2 +- addons/stock_location/stock_location_view.xml | 44 +++++++++++++++++-- 2 files changed, 42 insertions(+), 4 deletions(-) diff --git a/addons/stock_location/stock_location.py b/addons/stock_location/stock_location.py index 2247cd282a3..9fba12f6bdf 100644 --- a/addons/stock_location/stock_location.py +++ b/addons/stock_location/stock_location.py @@ -208,7 +208,7 @@ class product_category(osv.osv): _columns = { 'route_ids': fields.many2many('stock.location.route', 'stock_location_route_categ', 'categ_id', 'route_id', 'Routes', domain="[('product_categ_selectable', '=', True)]"), 'removal_strategy_ids': fields.one2many('product.removal', 'product_categ_id', 'Removal Strategies'), - #'putaway_strategy_ids': fields.one2many('product.putaway', 'product_categ_id', 'Put Away Strategies'), + 'putaway_strategy_ids': fields.one2many('product.putaway', 'product_categ_id', 'Put Away Strategies'), 'total_route_ids': fields.function(calculate_total_routes, relation='stock.location.route', type='many2many', string='Total routes', readonly=True), } diff --git a/addons/stock_location/stock_location_view.xml b/addons/stock_location/stock_location_view.xml index 061ec88003f..aa94e08e110 100644 --- a/addons/stock_location/stock_location_view.xml +++ b/addons/stock_location/stock_location_view.xml @@ -136,10 +136,48 @@ - - - + +
+

+ The routes on this category are: + +

+

+ The following routes will apply to the products in this category taking into account parent categories: + +

+
+ +
+

+ Removal strategies define the method used for suggesting the + location to take the products from +

+ + + + + + + +
+ + + +
+

+ Putaway strategies define the method used for suggesting the + location to put the products +

+ + + + + + + +