From 3ad5398a4ecebaa8bbf469f0067d58df982fc5f3 Mon Sep 17 00:00:00 2001 From: Cedric Snauwaert Date: Fri, 27 Sep 2013 13:18:40 +0200 Subject: [PATCH] [WIP]move active field of stock_location_route bzr revid: csn@openerp.com-20130927111840-c5rfj8yvz3haur4g --- addons/stock/stock.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 1f2b7530f14..0c8df8f8173 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -139,10 +139,12 @@ class stock_location_route(osv.osv): 'name': fields.char('Route Name', required=True), 'sequence': fields.integer('Sequence'), 'pull_ids': fields.one2many('procurement.rule', 'route_id', 'Pull Rules'), + 'active': fields.boolean('Active', help="If the active field is set to False, it will allow you to hide the route without removing it.") } _defaults = { 'sequence': lambda self,cr,uid,ctx: 0, + 'active': True, }