This commit is contained in:
2026-01-29 14:05:17 +01:00
parent 2b3cf5c095
commit 8cc0bffcae

View File

@@ -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: