[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
This commit is contained in:
Jeroen Mollers
2010-09-28 17:06:28 +05:30
committed by Jay (OpenERP)
parent fe5eaa5379
commit cd0685705f
+9
View File
@@ -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):