[tryton-debian-vcs] tryton-modules-sale-extra branch debian updated. debian/3.6.1-1-3-g4021370

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Jul 15 14:22:13 UTC 2015


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

commit 402137062b398bf92bf9e5eda2696d8ecb2e608b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed Jul 15 12:57:52 2015 +0200

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

diff --git a/debian/changelog b/debian/changelog
index bd27d83..524c403 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+tryton-modules-sale-extra (3.6.2-1) unstable; urgency=medium
+
+  * Adapting section naming in gbp.conf to current git-buildpackage.
+  * Merging upstream version 3.6.2.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Wed, 15 Jul 2015 12:57:52 +0200
+
 tryton-modules-sale-extra (3.6.1-1) unstable; urgency=medium
 
   * Removing patch 01-add-missing-tarball-files, no more needed, files now
commit 7103837fff15d0a97391fb8fb1ff0b547ae0c7d7
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Wed Jul 15 12:57:51 2015 +0200

    Merging upstream version 3.6.2.

diff --git a/CHANGELOG b/CHANGELOG
index 105696a..b7f341c 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.6.2 - 2015-07-13
+* Bug fixes (see mercurial logs for details)
+
 Version 3.6.1 - 2015-05-22
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index 3f00668..ccfe500 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_sale_extra
-Version: 3.6.1
+Version: 3.6.2
 Summary: Tryton module for sale extra
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/sale.py b/sale.py
index 54dfd7a..76c989d 100644
--- a/sale.py
+++ b/sale.py
@@ -27,7 +27,9 @@ class Sale:
         'Set extra lines'
         pool = Pool()
         Extra = pool.get('sale.extra')
+        Line = pool.get('sale.line')
 
+        lines_to_delete = []
         extra_lines = Extra.get_lines(self)
         extra2lines = {line.extra: line for line in extra_lines}
         lines = list(self.lines)
@@ -39,9 +41,12 @@ class Sale:
                 continue
             else:
                 lines.remove(line)
+                lines_to_delete.append(line)
         if extra2lines:
             lines.extend(extra2lines.values())
         self.lines = lines
+        if lines_to_delete:
+            Line.delete(lines_to_delete)
 
 
 class SaleLine:
diff --git a/tryton.cfg b/tryton.cfg
index 6c1f7f6..97ec624 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.6.1
+version=3.6.2
 depends:
     company
     ir
diff --git a/trytond_sale_extra.egg-info/PKG-INFO b/trytond_sale_extra.egg-info/PKG-INFO
index 28aacdf..ecee249 100644
--- a/trytond_sale_extra.egg-info/PKG-INFO
+++ b/trytond_sale_extra.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-sale-extra
-Version: 3.6.1
+Version: 3.6.2
 Summary: Tryton module for sale extra
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-sale-extra



More information about the tryton-debian-vcs mailing list