[tryton-debian-vcs] tryton-modules-sale branch upstream-4.0 updated. upstream/4.0.6-1-ge68bfed

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Dec 13 10:40:35 UTC 2017


The following commit has been merged in the upstream-4.0 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-sale.git;a=commitdiff;h=upstream/4.0.6-1-ge68bfed

commit e68bfed1113e89a8b6a6e80d06c738e59d6ee991
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Dec 12 18:58:02 2017 +0100

    Adding upstream version 4.0.7.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/CHANGELOG b/CHANGELOG
index cc654d7..db3eede 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.7 - 2017-12-04
+* Bug fixes (see mercurial logs for details)
+
 Version 4.0.6 - 2017-11-07
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index b2e130e..4608ca8 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_sale
-Version: 4.0.6
+Version: 4.0.7
 Summary: Tryton module for sale
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/sale.py b/sale.py
index 6896a10..e78e28c 100644
--- a/sale.py
+++ b/sale.py
@@ -585,7 +585,12 @@ class Sale(Workflow, ModelSQL, ModelView, TaxableMixin):
                 return [('lines.moves.shipment' + nested,)
                     + tuple(clause[1:3]) + (model_name,) + tuple(clause[3:])]
             else:
-                return [('lines.moves.shipment',) + tuple(clause[1:3])]
+                if isinstance(clause[2], basestring):
+                    target = 'rec_name'
+                else:
+                    target = 'id'
+                return [('lines.moves.shipment.' + target,)
+                    + tuple(clause[1:3]) + (model_name,)]
         return classmethod(method)
 
     search_shipments = search_shipments_returns('stock.shipment.out')
diff --git a/tryton.cfg b/tryton.cfg
index c31963e..a0fe7fd 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=4.0.6
+version=4.0.7
 depends:
     account
     account_invoice
diff --git a/trytond_sale.egg-info/PKG-INFO b/trytond_sale.egg-info/PKG-INFO
index ee7d8f7..d38614e 100644
--- a/trytond_sale.egg-info/PKG-INFO
+++ b/trytond_sale.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-sale
-Version: 4.0.6
+Version: 4.0.7
 Summary: Tryton module for sale
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-sale



More information about the tryton-debian-vcs mailing list