diff --git a/product/ERP5/Document/Delivery.py b/product/ERP5/Document/Delivery.py index f9543dbf4d866bb1bfd8fa7897939bc33ea23177..e60a1c446d677f0983d9f72c3009756dec1d463e 100755 --- a/product/ERP5/Document/Delivery.py +++ b/product/ERP5/Document/Delivery.py @@ -419,9 +419,13 @@ une liste de mouvements...""" invoice.setProperty(key, order.getProperty(key)) # Define VAT recoverability - if invoice.getDestinationSectionValue().getDefaultAddress().getRegion() in ('Europe/Nord/France',None,'') : - vat_ratio = 0.196 - vat_recoverable = 1 + if invoice.getDestinationSectionValue().getDefaultAddress() is not None : + if invoice.getDestinationSectionValue().getDefaultAddress().getRegion() in ('Europe/Nord/France',None,'') : + vat_ratio = 0.196 + vat_recoverable = 1 + else : + vat_ratio = 0 + vat_recoverable = 0 else : vat_ratio = 0 vat_recoverable = 0