lims_sale: fix invoice line generation
This commit is contained in:
parent
9566589f18
commit
1713b6e4e9
|
@ -101,6 +101,8 @@ class Service(metaclass=PoolMeta):
|
||||||
|
|
||||||
def get_invoice_line(self, invoice_type):
|
def get_invoice_line(self, invoice_type):
|
||||||
invoice_line = super().get_invoice_line(invoice_type)
|
invoice_line = super().get_invoice_line(invoice_type)
|
||||||
|
if not invoice_line:
|
||||||
|
return
|
||||||
if self.sample.sale_lines:
|
if self.sample.sale_lines:
|
||||||
for sale_line in self.sample.sale_lines:
|
for sale_line in self.sample.sale_lines:
|
||||||
if sale_line.product.id == self.analysis.product.id:
|
if sale_line.product.id == self.analysis.product.id:
|
||||||
|
|
Loading…
Reference in New Issue