[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user