From f24dae3f98fa72d83b1663cd3720aa855a7914c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 13 Feb 2018 19:31:59 +0100 Subject: [PATCH] Create invoice lines for moves from production or to production location issue7011 review42941002 --- stock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stock.py b/stock.py index 5faadcc6fe..8f9ab88c65 100644 --- a/stock.py +++ b/stock.py @@ -107,10 +107,10 @@ class Move: def get_invoice_line_consignment(self): if (self.from_location.type == 'supplier' - and self.to_location.type == 'storage' + and self.to_location.type in {'storage', 'production'} and self.from_location.consignment_party): return self._get_supplier_invoice_line_consignment() - elif (self.from_location.type == 'storage' + elif (self.from_location.type in {'storage', 'production'} and self.to_location.type == 'customer' and self.from_location.consignment_party): return self._get_customer_invoice_line_consignment()