This commit is contained in:
2026-01-17 17:55:07 +01:00
parent 2f1adffba3
commit b4f794c275

View File

@@ -1885,7 +1885,10 @@ class Line(sequence_ordered(), ModelSQL, ModelView):
self.product.supplier_taxes_deductible_rate_used)
invoice_line.invoice_type = 'in'
if self.product:
invoice_line.account = self.product.account_stock_in_used
if self.product.type == 'service' and not self.product.landed_cost:
invoice_line.account = self.product.account_expense_used
else:
invoice_line.account = self.product.account_stock_in_used
if not invoice_line.account:
raise AccountError(
gettext('purchase'