From 2ee62174741b0408c22ba972d27df3fb5f97865a Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Thu, 18 Jul 2013 09:20:22 +0200 Subject: [PATCH] [WIP] Remove auto_validate bzr revid: jco@openerp.com-20130718072022-hgz2z8i13epyyufy --- addons/mrp/stock.py | 1 - addons/stock/stock.py | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/addons/mrp/stock.py b/addons/mrp/stock.py index 9f91f6b5433..89d9d24522c 100644 --- a/addons/mrp/stock.py +++ b/addons/mrp/stock.py @@ -88,7 +88,6 @@ class StockMove(osv.osv): move_obj.write(cr, uid, [move.id], { 'location_dest_id': move.location_id.id, # dummy move for the kit - 'auto_validate': True, 'picking_id': False, 'state': 'confirmed' }) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index f3157811262..a4096bd8af6 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1140,8 +1140,7 @@ class stock_move(osv.osv): # FP Note: should we remove this? 'partner_id': fields.many2one('res.partner', 'Destination Address ', states={'done': [('readonly', True)]}, help="Optional address where goods are to be delivered, specifically used for allotment"), - - 'auto_validate': fields.boolean('Auto Validate'), + 'move_dest_id': fields.many2one('stock.move', 'Destination Move', help="Optional: next stock move when chaining them", select=True), 'move_orig_ids': fields.one2many('stock.move', 'move_dest_id', 'Original Move', help="Optional: next stock move when chaining them", select=True), @@ -1681,8 +1680,6 @@ class stock_move(osv.osv): # quants = quant_obj.search(cr, uid, [('history_ids', 'in', move.id), ('location_id', '=', move.location_dest_id.id), ('reservation_id', '=', False)], context=context) # if quants: # quant_obj.write(cr, uid, quants, {'reservation_id':move.move_dest_id.id}, context=context) - if move.move_dest_id.auto_validate: #TO be removed everywhere - self.action_done(cr, uid, [move.move_dest_id.id], context=context) self.write(cr, uid, ids, {'state': 'done', 'date': time.strftime(DEFAULT_SERVER_DATETIME_FORMAT)}, context=context)