From cd0685705fe048c4037ff0e0c8d5a47c743c6d41 Mon Sep 17 00:00:00 2001 From: Jeroen Mollers <> Date: Tue, 28 Sep 2010 17:06:28 +0530 Subject: [PATCH] [FIX] Mrp_operations : copy of stock_move overridden in order to block wrong duplication of procurements and stock moves lp bug: https://launchpad.net/bugs/530984 fixed bzr revid: jvo@tinyerp.com-20100928113628-jkc5b2its09hedh0 --- addons/mrp_operations/mrp_operations.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/addons/mrp_operations/mrp_operations.py b/addons/mrp_operations/mrp_operations.py index 968650c6f7b..919f65903ae 100644 --- a/addons/mrp_operations/mrp_operations.py +++ b/addons/mrp_operations/mrp_operations.py @@ -39,6 +39,15 @@ class stock_move(osv.osv): _columns = { 'move_dest_id_lines': fields.one2many('stock.move','move_dest_id', 'Children Moves') } + + def copy(self, cr, uid, id, default=None, context={}): + if default is None: + default = {} + default.update({ + 'move_dest_id_lines': [], + }) + return super(stock_move, self).copy(cr, uid, id, default, context) + stock_move() class mrp_production_workcenter_line(osv.osv):