Create invoice line for non-line only once
issue3292 review1043002 (transplanted from 71fd4a013396386aaee4479c27c05178721b38d5)
This commit is contained in:
1 parent
3adde439e4
commit
254e238fce
1 file changed
+1
@@ -1216,6 +1216,7 @@ class SaleLine(ModelSQL, ModelView):
|
||||
invoice_line.note = self.note
|
||||
if self.type != 'line':
|
||||
if (self.sale.invoice_method == 'order'
|
||||
and not self.invoice_lines
|
||||
and ((all(l.quantity >= 0 for l in self.sale.lines
|
||||
if l.type == 'line')
|
||||
and invoice_type == 'out_invoice')
|
||||
|
||||
Reference in new issue
Block a user