[tryton-debian-vcs] tryton-modules-sale-supply-drop-shipment branch debian-stretch-3.8 updated. debian/3.8.3-1-2-g9cea5c7

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Thu Oct 5 12:27:36 UTC 2017


The following commit has been merged in the debian-stretch-3.8 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-sale-supply-drop-shipment.git;a=commitdiff;h=debian/3.8.3-1-2-g9cea5c7

commit 9cea5c7b2ec457f3240e44aeca95c3a259a535e5
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Thu Oct 5 11:25:41 2017 +0200

    Releasing debian version 3.8.4-1.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/debian/changelog b/debian/changelog
index 275e31d..3f19ded 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-sale-supply-drop-shipment (3.8.4-1) unstable; urgency=medium
+
+  * Merging upstream version 3.8.4.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Thu, 05 Oct 2017 11:25:41 +0200
+
 tryton-modules-sale-supply-drop-shipment (3.8.3-1) unstable; urgency=medium
 
   * Merging upstream version 3.8.3.
commit 7f95813059f79b71843ff43d8bf104637108511b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Thu Oct 5 11:25:40 2017 +0200

    Merging upstream version 3.8.4.

diff --git a/CHANGELOG b/CHANGELOG
index ab3f2cc..9b43f1e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.8.4 - 2017-10-04
+* Bug fixes (see mercurial logs for details)
+
 Version 3.8.3 - 2017-06-06
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index 3f6c661..38304ee 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_sale_supply_drop_shipment
-Version: 3.8.3
+Version: 3.8.4
 Summary: Tryton module for sale supply drop shipment
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/purchase.py b/purchase.py
index c4a4a0c..574dad1 100644
--- a/purchase.py
+++ b/purchase.py
@@ -79,7 +79,8 @@ class Purchase:
         PurchaseConfig = pool.get('purchase.configuration')
 
         config = PurchaseConfig(1)
-        return config.purchase_drop_location.id
+        if config.purchase_drop_location:
+            return config.purchase_drop_location.id
 
     @fields.depends('customer', 'delivery_address')
     def on_change_customer(self):
diff --git a/sale.py b/sale.py
index 9848943..5453dc4 100644
--- a/sale.py
+++ b/sale.py
@@ -35,7 +35,8 @@ class Sale:
         Config = pool.get('sale.configuration')
 
         config = Config(1)
-        return config.sale_drop_location.id
+        if config.sale_drop_location:
+            return config.sale_drop_location.id
 
     def get_drop_shipments(self, name):
         DropShipment = Pool().get('stock.shipment.drop')
diff --git a/stock.py b/stock.py
index 6242c8c..78f4e8a 100644
--- a/stock.py
+++ b/stock.py
@@ -377,7 +377,8 @@ class ShipmentDrop(Workflow, ModelSQL, ModelView):
                         s_move.unit_price * internal_quantity)
             for product, cost in product_cost.iteritems():
                 qty = Decimal(str(product_qty[product]))
-                product_cost[product] = (cost / qty).quantize(cost_exp)
+                if qty:
+                    product_cost[product] = (cost / qty).quantize(cost_exp)
             for c_move in shipment.customer_moves:
                 if c_move.state == 'cancel':
                     continue
diff --git a/tryton.cfg b/tryton.cfg
index 2813dcf..a8a022b 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.8.3
+version=3.8.4
 depends:
     company
     ir
diff --git a/trytond_sale_supply_drop_shipment.egg-info/PKG-INFO b/trytond_sale_supply_drop_shipment.egg-info/PKG-INFO
index 3858753..006a8b7 100644
--- a/trytond_sale_supply_drop_shipment.egg-info/PKG-INFO
+++ b/trytond_sale_supply_drop_shipment.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-sale-supply-drop-shipment
-Version: 3.8.3
+Version: 3.8.4
 Summary: Tryton module for sale supply drop shipment
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-sale-supply-drop-shipment



More information about the tryton-debian-vcs mailing list