From b7a07d3385415000fd8adfe7c0e200cc4eb26b80 Mon Sep 17 00:00:00 2001
From: Goffin Simon <sig@odoo.com>
Date: Tue, 3 Oct 2017 11:36:44 +0200
Subject: [PATCH] [FIX] sale_stock: Typo error

Typo error
---
 addons/sale_stock/models/account_invoice.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/sale_stock/models/account_invoice.py b/addons/sale_stock/models/account_invoice.py
index c503d35d21ff..930e5cf0bb22 100644
--- a/addons/sale_stock/models/account_invoice.py
+++ b/addons/sale_stock/models/account_invoice.py
@@ -26,7 +26,7 @@ class AccountInvoiceLine(models.Model):
                 quantity = self.uom_id._compute_quantity(self.quantity, self.product_id.uom_id)
                 # Put moves in fixed order by date executed
                 moves = self.env['stock.move']
-                moves |=_line.move_ids
+                moves |= s_line.move_ids
                 moves.sorted(lambda x: x.date)
                 # Go through all the moves and do nothing until you get to qty_done
                 # Beyond qty_done we need to calculate the average of the price_unit
-- 
GitLab