[FIX] sale_mrp: get_parent_move

The function get_parent_move is waiting a stock.move record not an id.

opw:653105
This commit is contained in:
Goffin Simon
2015-10-27 12:34:48 +01:00
parent 76593cd081
commit fa85b0f075
+1 -1
View File
@@ -15,7 +15,7 @@ class MrpProduction(models.Model):
def _compute_sale_name_sale_ref(self):
def get_parent_move(move):
if move.move_dest_id:
return get_parent_move(move.move_dest_id.id)
return get_parent_move(move.move_dest_id)
return move
for production in self:
if production.move_prod_id: