[FIX] sale_stock: Typo error

Typo error
This commit is contained in:
Goffin Simon
2017-10-03 13:04:34 +02:00
parent d46279ef7b
commit b7a07d3385
+1 -1
View File
@@ -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