@@ -38,32 +40,45 @@
                 
                 
                     
-                        Kundennr.:
+                        
+                            Kundennr.:
+                        
                         
                     
-                    
Ansprechpartner:
+                    
+                        Ansprechpartner:
+                    
                     
-                    
Positionen:
+                    
+                        Positionen:
+                    
                     
                  
                 
                     
-                        Rechnungsdatum:
+                        
+                            Rechnungsdatum:
+                        
                         
                     
-                    
Email:
+                    
+                        Email:
+                    
                     
-                    
Artikel:
+                    
+                        Artikel:
+                    
                     
                  
                 
-                    
-                        Lieferdatum:
-                        ?????????
-                    
-                    
Telefon:
+                    
+                    
+                        Telefon:
+                    
                     
-                    
Bezeichnung:
+                    
+                        Bezeichnung:
+                    
                     
                 
@@ -87,12 +102,20 @@
                             
                             
                                 
-                                    | -                                        
+ | +                                        
+                                            
+                                        
++ | + | +                                        
+                                            
+ | 
                                 
-                                
                                     
                                         
                                         | @@ -102,7 +125,8 @@ | -                                             kg
+                                            
+                                            kg | @@ -187,7 +211,8 @@ | 
                         Gesamtgewicht:
-                         kg
+                        
+                        kg
                         
                     
                     
@@ -200,31 +225,31 @@
                         
                         
                     
-                    
-                        EORI-Nr.:
-                        
-                        
-                    
                 
-                
-            
-        
+            
+        
+    
 
-        
-            
-                
-                    
-                
+    
+        
+            
+                
             
-        
-
-    
+        
+    
 
     
         
+        
+    
+
+    
+        
+        
     
 
     
+        Rechnungen
         
     
 
diff --git a/ext/custom-addons/dp_sale_delivery_date/models/sale_order.py b/ext/custom-addons/dp_sale_delivery_date/models/sale_order.py
index be42aa08..2603a2b8 100644
--- a/ext/custom-addons/dp_sale_delivery_date/models/sale_order.py
+++ b/ext/custom-addons/dp_sale_delivery_date/models/sale_order.py
@@ -12,7 +12,8 @@ class SaleOrder(models.Model):
     @api.multi
     def _compute_delivery_date(self):
         for order in self:
-            lines = order.order_line.sorted(key=lambda d: d.delivery_date)
+            lines = order.order_line.filtered(lambda d: d.delivery_date)
+            lines = lines.sorted(key=lambda d: fields.Date.from_string(d.delivery_date))
             if lines:
                 order.delivery_date = lines[0].delivery_date
 
diff --git a/setup/lib/config_tza.py b/setup/lib/config_tza.py
index 2abaed7b..13988907 100644
--- a/setup/lib/config_tza.py
+++ b/setup/lib/config_tza.py
@@ -23,7 +23,7 @@ class ConfigTZA(Config):
             'vat': 'ATU 54619104',
             'vat_check_vies': True,
             'logo': '../ext/custom-addons/dp_custom/static/src/img/logo.png',
-            'eori_nr': 'ATEOSI 0000 11273',
+            'eori_nr': 'ATEOS 100011273',
             #'favicon_backend': '../ext/custom-addons/dp_custom/static/src/img/favicon.ico',
             #'favicon_backend_mimetype': 'image/x-icon'
         }