Skip to content
Snippets Groups Projects
Commit df0c0c85 authored by Paulius Sladkevičius's avatar Paulius Sladkevičius Committed by Martin Trigaux
Browse files

[FIX] mrp: model used instead recordset

The condition was never verified as prod_obj.type is a field.
Closes #9931
parent 27fdcdf9
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment