Skip to content
Snippets Groups Projects
Commit f6bf5455 authored by Damien Bouvy's avatar Damien Bouvy
Browse files

[FIX] sale_mrp: bad variable assignment

parent a3704300
No related branches found
No related tags found
No related merge requests found
......@@ -20,8 +20,8 @@ class MrpProduction(models.Model):
for production in self:
if production.move_prod_id:
move = get_parent_move(production.move_prod_id)
production.sale_name = move.procurement_id and move.procurement_id.sale_line_id and move.procurement_id.sale_line_id.order_id.name or False
production.sale_ref = move.procurement_id and move.procurement_id.sale_line_id and move.procurement_id.sale_line_id.order_id.client_order_ref or False
production.sale_name = move.procurement_id and move.procurement_id.sale_line_id and move.procurement_id.sale_line_id.order_id.name or False
production.sale_ref = move.procurement_id and move.procurement_id.sale_line_id and move.procurement_id.sale_line_id.order_id.client_order_ref or False
class SaleOrderLine(models.Model):
......
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