[FIX] mrp: model used instead recordset

The condition was never verified as prod_obj.type is a field.
Closes #9931
This commit is contained in:
Paulius Sladkevičius
2015-12-11 10:30:51 +01:00
committed by Martin Trigaux
parent 27fdcdf982
commit df0c0c85f1
+1 -1
View File
@@ -61,7 +61,7 @@ class StockMove(osv.osv):
mid = move_obj.copy(cr, uid, move.id, default=valdef, context=context)
to_explode_again_ids.append(mid)
else:
if prod_obj.type in ('consu','product'):
if product.type in ('consu','product'):
valdef = {
'name': move.rule_id and move.rule_id.name or "/",
'origin': move.origin,