[8.0] skip invoice lines with value 0

This commit is contained in:
Luc De Meyer
2017-10-07 14:02:52 +02:00
committed by GitHub
parent 6e4cc65463
commit e2b5c3ae9e

View File

@@ -501,6 +501,9 @@ class IntrastatProductDeclaration(models.Model):
total_inv_weight = 0.0
for inv_line in invoice.invoice_line:
if not inv_line.price_unit:
continue
if (
accessory_costs and
inv_line.product_id and