[tryton-debian-vcs] tryton-modules-stock branch debian-stretch-3.8 updated. debian/3.8.1-2-4-gcedcc60

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Tue Jul 12 13:06:05 UTC 2016


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-stock.git;a=commitdiff;h=debian/3.8.1-2-4-gcedcc60

commit cedcc6088753512666b69325ee38bbc1f676d60e
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Jul 11 20:41:37 2016 +0200

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

diff --git a/debian/changelog b/debian/changelog
index b027495..5a322c7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+tryton-modules-stock (3.8.2-1) unstable; urgency=medium
+
+  * Updating signing-key.asc with the actual upstream maintainer keys.
+  * Setting the branch in the watch file to the fixed version 3.8.
+  * Merging upstream version 3.8.2.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Mon, 11 Jul 2016 20:41:37 +0200
+
 tryton-modules-stock (3.8.1-2) unstable; urgency=medium
 
   * Updating to standards version 3.9.7, no changes needed.
commit cb642233e005c7740a58b21e254c288f85472b28
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Jul 11 20:41:36 2016 +0200

    Merging upstream version 3.8.2.

diff --git a/CHANGELOG b/CHANGELOG
index ee24571..7054a91 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.8.2 - 2016-07-04
+* Bug fixes (see mercurial logs for details)
+
 Version 3.8.1 - 2016-02-06
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index f9748f1..dd84169 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_stock
-Version: 3.8.1
+Version: 3.8.2
 Summary: Tryton module for stock and inventory
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/shipment.py b/shipment.py
index 9a62f3b..8ea9064 100644
--- a/shipment.py
+++ b/shipment.py
@@ -519,8 +519,15 @@ class ShipmentInReturn(Workflow, ModelSQL, ModelView):
                 & Eval('to_location')),
             },
         domain=[
-            ('from_location', '=', Eval('from_location')),
-            ('to_location', '=', Eval('to_location')),
+            If(Eval('state') == 'draft', [
+                    ('from_location', '=', Eval('from_location')),
+                    ('to_location', '=', Eval('to_location')),
+                    ], [
+                    ('from_location', 'child_of', [Eval('from_location', -1)],
+                        'parent'),
+                    ('to_location', 'child_of', [Eval('to_location', -1)],
+                        'parent'),
+                    ]),
             ('company', '=', Eval('company')),
             ],
         depends=['state', 'from_location', 'to_location', 'company'])
@@ -695,6 +702,13 @@ class ShipmentInReturn(Workflow, ModelSQL, ModelView):
         Move = Pool().get('stock.move')
         Move.draft([m for s in shipments for m in s.moves
                 if m.state != 'staging'])
+        for shipment in shipments:
+            Move.write([m for m in shipment.moves
+                    if m.state != 'done'], {
+                    'from_location': shipment.from_location.id,
+                    'to_location': shipment.to_location.id,
+                    'planned_date': shipment.planned_date,
+                    })
 
     @classmethod
     @ModelView.button
diff --git a/tryton.cfg b/tryton.cfg
index 3076f98..8847166 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.8.1
+version=3.8.2
 depends:
     company
     currency
diff --git a/trytond_stock.egg-info/PKG-INFO b/trytond_stock.egg-info/PKG-INFO
index dfbfd29..60a5c14 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: 3.8.1
+Version: 3.8.2
 Summary: Tryton module for stock and inventory
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/trytond_stock.egg-info/requires.txt b/trytond_stock.egg-info/requires.txt
index f2e4f30..a28dfd5 100644
--- a/trytond_stock.egg-info/requires.txt
+++ b/trytond_stock.egg-info/requires.txt
@@ -3,4 +3,4 @@ trytond_company >= 3.8, < 3.9
 trytond_currency >= 3.8, < 3.9
 trytond_party >= 3.8, < 3.9
 trytond_product >= 3.8, < 3.9
-trytond >= 3.8, < 3.9
\ No newline at end of file
+trytond >= 3.8, < 3.9
-- 
tryton-modules-stock



More information about the tryton-debian-vcs mailing list