From 8cc0bffcae41e814b7348858f2540e98d4ddd375 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Thu, 29 Jan 2026 14:05:17 +0100 Subject: [PATCH] 29.01.26 --- modules/purchase/purchase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/purchase/purchase.py b/modules/purchase/purchase.py index 6f442ac..99cc600 100755 --- a/modules/purchase/purchase.py +++ b/modules/purchase/purchase.py @@ -1891,6 +1891,8 @@ class Line(sequence_ordered(), ModelSQL, ModelView): self.product.supplier_taxes_deductible_rate_used) invoice_line.invoice_type = 'in' if self.product: + if self.product.type == 'service': + quantity = 1 if self.product.type == 'service' and not self.product.landed_cost: invoice_line.account = self.product.account_stock_in_used else: