[tryton-debian-vcs] tryton-modules-stock branch debian-jessie-3.4 updated. debian/3.4.3-1-4-g1441322

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


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

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

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

diff --git a/debian/changelog b/debian/changelog
index 14e7125..39c59be 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+tryton-modules-stock (3.4.4-1) unstable; urgency=medium
+
+  * Updating signing-key.asc with the actual upstream maintainer keys.
+  * Merging upstream version 3.4.4.
+  * Updating copyright file.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Mon, 11 Jul 2016 20:38:41 +0200
+
 tryton-modules-stock (3.4.3-1) unstable; urgency=medium
 
   * Merging upstream version 3.4.3.
commit 8e68f1cbceb51eb5b789db7f8f6ba0fa1591d937
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Jul 11 20:38:41 2016 +0200

    Updating copyright file.

diff --git a/debian/copyright b/debian/copyright
index 9128ae2..8213bd8 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,9 +2,9 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 
 Files: *
 Copyright: 2012 Openlabs Technologies & Consulting (P) LTD
-           2008-2015 Cédric Krier
+           2008-2016 Cédric Krier
            2008-2013 Bertrand Chenal
-           2008-2015 B2CK SPRL
+           2008-2016 B2CK SPRL
            2004-2008 Tiny SPRL
 License: GPL-3+
 
commit 44339bb03b8a41a23e213b727cb905f93d1c0a7f
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Jul 11 20:38:41 2016 +0200

    Merging upstream version 3.4.4.

diff --git a/CHANGELOG b/CHANGELOG
index 9578ade..5d9f1b2 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.4.4 - 2016-07-04
+* Bug fixes (see mercurial logs for details)
+
 Version 3.4.3 - 2015-12-22
 * Bug fixes (see mercurial logs for details)
 
diff --git a/COPYRIGHT b/COPYRIGHT
index 3a91df4..f5434dd 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,7 +1,7 @@
 Copyright (C) 2012 Openlabs Technologies & Consulting (P) LTD.
-Copyright (C) 2008-2015 Cédric Krier.
+Copyright (C) 2008-2016 Cédric Krier.
 Copyright (C) 2008-2013 Bertrand Chenal.
-Copyright (C) 2008-2015 B2CK SPRL.
+Copyright (C) 2008-2016 B2CK SPRL.
 Copyright (C) 2004-2008 Tiny SPRL.
 
 This program is free software: you can redistribute it and/or modify
diff --git a/PKG-INFO b/PKG-INFO
index bf4a323..6a63f31 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_stock
-Version: 3.4.3
+Version: 3.4.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 02337f5..f2f971a 100644
--- a/shipment.py
+++ b/shipment.py
@@ -516,8 +516,15 @@ class ShipmentInReturn(Workflow, ModelSQL, ModelView):
                 Bool(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'])
@@ -691,6 +698,13 @@ class ShipmentInReturn(Workflow, ModelSQL, ModelView):
     def draft(cls, shipments):
         Move = Pool().get('stock.move')
         Move.draft([m for s in shipments for m in s.moves])
+        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 b840cd6..f040f83 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.4.3
+version=3.4.4
 depends:
     company
     currency
diff --git a/trytond_stock.egg-info/PKG-INFO b/trytond_stock.egg-info/PKG-INFO
index 49676da..949be87 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.4.3
+Version: 3.4.4
 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 a8d32a8..4b39bd1 100644
--- a/trytond_stock.egg-info/requires.txt
+++ b/trytond_stock.egg-info/requires.txt
@@ -3,4 +3,4 @@ trytond_company >= 3.4, < 3.5
 trytond_currency >= 3.4, < 3.5
 trytond_party >= 3.4, < 3.5
 trytond_product >= 3.4, < 3.5
-trytond >= 3.4, < 3.5
\ No newline at end of file
+trytond >= 3.4, < 3.5
-- 
tryton-modules-stock



More information about the tryton-debian-vcs mailing list