Create invoice line for non-line only once

issue3292
review1043002
(transplanted from 71fd4a013396386aaee4479c27c05178721b38d5)
This commit is contained in:
Cédric Krier committed 2013-09-02 11:19:37 +02:00
1 parent ea1e85f26b
commit eadb7f3f05
1 file changed
+1
+1
View File
@@ -1382,6 +1382,7 @@ class SaleLine(ModelSQL, ModelView):
res['note'] = line.note
if line.type != 'line':
if (line.sale.invoice_method == 'order'
and not line.invoice_lines
and ((all(l.quantity >= 0 for l in line.sale.lines
if l.type == 'line')
and invoice_type == 'out_invoice')