Merge pull request #24 from luc-demeyer/patch-5

[8.0] skip invoice lines with value 0
This commit is contained in:
Luc De Meyer
2018-11-25 17:50:06 +01:00
committed by GitHub

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_subtotal:
continue
if (
accessory_costs and
inv_line.product_id and