[tryton-debian-vcs] tryton-modules-stock branch debian-jessie-2.8 updated. debian/2.8.3-1-2-gf12e197

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Sun Jan 19 20:13:05 UTC 2014


The following commit has been merged in the debian-jessie-2.8 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock.git;a=commitdiff;h=debian/2.8.3-1-2-gf12e197

commit f12e197ae14eabff870a65e66fa6b2cb5b9f91ac
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Sun Jan 19 21:12:37 2014 +0100

    Releasing debian version 2.8.4-1.

diff --git a/debian/changelog b/debian/changelog
index 7f0ef66..614c354 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-stock (2.8.4-1) unstable; urgency=medium
+
+  * Merging upstream version 2.8.4.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Sun, 19 Jan 2014 20:57:15 +0100
+
 tryton-modules-stock (2.8.3-1) unstable; urgency=low
 
   * Removing inadvertently commited .pc directory.
commit 4ec72d994faee1896c41ec0ee63a2b4003895ee6
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Sun Jan 19 20:55:30 2014 +0100

    Merging upstream version 2.8.4.

diff --git a/CHANGELOG b/CHANGELOG
index e9eb375..183ab67 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 2.8.4 - 2014-01-18
+* Bug fixes (see mercurial logs for details)
+
 Version 2.8.3 - 2013-12-04
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index 04875e0..f57a58d 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_stock
-Version: 2.8.3
+Version: 2.8.4
 Summary: Tryton module for stock and inventory
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/shipment.py b/shipment.py
index 5c20026..9b05c7c 100644
--- a/shipment.py
+++ b/shipment.py
@@ -234,10 +234,10 @@ class ShipmentIn(Workflow, ModelSQL, ModelView):
         return Transaction().context.get('company')
 
     def on_change_supplier(self):
-        if not self.supplier:
-            return {'contact_address': None}
-        address = self.supplier.address_get()
-        return {'contact_address': address.id}
+        address = None
+        if self.supplier:
+            address = self.supplier.address_get()
+        return {'contact_address': address.id if address else None}
 
     def on_change_with_supplier_location(self, name=None):
         if self.supplier:
@@ -939,10 +939,10 @@ class ShipmentOut(Workflow, ModelSQL, ModelView):
         return Transaction().context.get('company')
 
     def on_change_customer(self):
-        if not self.customer:
-            return {'delivery_address': None}
-        address = self.customer.address_get(type='delivery')
-        return {'delivery_address': address.id}
+        address = None
+        if self.customer:
+            address = self.customer.address_get(type='delivery')
+        return {'delivery_address': address.id if address else None}
 
     def on_change_with_customer_location(self, name=None):
         if self.customer:
@@ -1428,11 +1428,11 @@ class ShipmentOutReturn(Workflow, ModelSQL, ModelView):
         return Transaction().context.get('company')
 
     def on_change_customer(self):
-        if not self.customer:
-            return {'delivery_address': None}
-        address = self.customer.address_get(type='delivery')
+        address = None
+        if self.customer:
+            address = self.customer.address_get(type='delivery')
         return {
-            'delivery_address': address.id,
+            'delivery_address': address.id if address else None,
             }
 
     def on_change_with_customer_location(self, name=None):
diff --git a/tryton.cfg b/tryton.cfg
index d81e746..35aff47 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=2.8.3
+version=2.8.4
 depends:
     company
     currency
diff --git a/trytond_stock.egg-info/PKG-INFO b/trytond_stock.egg-info/PKG-INFO
index 986a4da..c592941 100644
--- a/trytond_stock.egg-info/PKG-INFO
+++ b/trytond_stock.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-stock
-Version: 2.8.3
+Version: 2.8.4
 Summary: Tryton module for stock and inventory
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-stock



More information about the tryton-debian-vcs mailing list