Skip to content
Snippets Groups Projects
Commit 6d9e3cbe authored by Cédric Krier's avatar Cédric Krier
Browse files

STOCK: add product_id in the context for product_expiry to calculate dates

bzr revid: ced-6e234782deb1810d799f4cd6f94889743508aa84
parent b7324422
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ def _track_lines(self, cr, uid, data, context):
new_move.append(current_move)
else:
current_move = move.id
new_prodlot = prodlot_obj.create(cr, uid, {'name': sequence, 'ref': '%d'%idx})
new_prodlot = prodlot_obj.create(cr, uid, {'name': sequence, 'ref': '%d'%idx}, {'product_id': move.product_id.id})
update_val['prodlot_id'] = new_prodlot
move_obj.write(cr, uid, [current_move], update_val)
production_ids = production_obj.search(cr, uid, [('move_lines', 'in', [move.id])])
......
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