main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit 8cc0bffcae - Show all commits

View File

@@ -1891,6 +1891,8 @@ class Line(sequence_ordered(), ModelSQL, ModelView):
self.product.supplier_taxes_deductible_rate_used) self.product.supplier_taxes_deductible_rate_used)
invoice_line.invoice_type = 'in' invoice_line.invoice_type = 'in'
if self.product: if self.product:
if self.product.type == 'service':
quantity = 1
if self.product.type == 'service' and not self.product.landed_cost: if self.product.type == 'service' and not self.product.landed_cost:
invoice_line.account = self.product.account_stock_in_used invoice_line.account = self.product.account_stock_in_used
else: else: