[tryton-debian-vcs] tryton-modules-account branch debian-jessie-3.2 updated. debian/3.2.8-1-2-g10130d0

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


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

commit 10130d05c3f8f929b993e9fa176f733a0932371b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Jul 11 19:56:22 2016 +0200

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

diff --git a/debian/changelog b/debian/changelog
index 9b7d6ef..2427ecb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-account (3.2.9-1) unstable; urgency=medium
+
+  * Merging upstream version 3.2.9.
+
+ -- Mathias Behrle <mathiasb at m9s.biz>  Mon, 11 Jul 2016 19:56:22 +0200
+
 tryton-modules-account (3.2.8-1) unstable; urgency=medium
 
   * Updating signing-key.asc with the actual upstream maintainer keys.
commit b51985be6b967ced126606471bfef5ade2ee9cb8
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Jul 11 19:56:21 2016 +0200

    Merging upstream version 3.2.9.

diff --git a/CHANGELOG b/CHANGELOG
index 4060afc..8ed4eb5 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.2.9 - 2016-07-05
+* Bug fixes (see mercurial logs for details)
+
 Version 3.2.8 - 2016-03-14
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index 1bd3b02..90dcbae 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_account
-Version: 3.2.8
+Version: 3.2.9
 Summary: Tryton module for accounting
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/account.py b/account.py
index 884fc69..c5cec45 100644
--- a/account.py
+++ b/account.py
@@ -812,6 +812,8 @@ class Account(ModelSQL, ModelView):
     def copy(cls, accounts, default=None):
         if default is None:
             default = {}
+        else:
+            default = default.copy()
         default['left'] = 0
         default['right'] = 0
         default.setdefault('template')
diff --git a/tax.py b/tax.py
index b04c97a..b634c30 100644
--- a/tax.py
+++ b/tax.py
@@ -237,6 +237,15 @@ class TaxCode(ModelSQL, ModelView):
             ]
 
     @classmethod
+    def copy(cls, codes, default=None):
+        if default is None:
+            default = {}
+        else:
+            default = default.copy()
+        default.setdefault('template')
+        return super(TaxCode, cls).copy(codes, default=default)
+
+    @classmethod
     def delete(cls, codes):
         codes = cls.search([
                 ('parent', 'child_of', [c.id for c in codes]),
@@ -738,6 +747,15 @@ class Tax(ModelSQL, ModelView):
             return self.company.currency.digits
         return 2
 
+    @classmethod
+    def copy(cls, taxes, default=None):
+        if default is None:
+            default = {}
+        else:
+            default = default.copy()
+        default.setdefault('template')
+        return super(Tax, cls).copy(taxes, default=default)
+
     def _process_tax(self, price_unit):
         if self.type == 'percentage':
             amount = price_unit * self.rate
@@ -1022,6 +1040,15 @@ class TaxRule(ModelSQL, ModelView):
     def default_kind():
         return 'both'
 
+    @classmethod
+    def copy(cls, rules, default=None):
+        if default is None:
+            default = {}
+        else:
+            default = default.copy()
+        default.setdefault('template')
+        return super(TaxRule, cls).copy(rules, default=default)
+
     def apply(self, tax, pattern):
         '''
         Apply rule on tax
@@ -1252,6 +1279,15 @@ class TaxRuleLine(ModelSQL, ModelView):
         table, _ = tables[None]
         return [table.sequence == None, table.sequence]
 
+    @classmethod
+    def copy(cls, lines, default=None):
+        if default is None:
+            default = {}
+        else:
+            default = default.copy()
+        default.setdefault('template')
+        return super(TaxRuleLine, cls).copy(lines, default=default)
+
     def match(self, pattern):
         '''
         Match line on pattern
diff --git a/tryton.cfg b/tryton.cfg
index 7f297b5..5f114fb 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.2.8
+version=3.2.9
 depends:
     company
     currency
diff --git a/trytond_account.egg-info/PKG-INFO b/trytond_account.egg-info/PKG-INFO
index 53fe8fe..8bf8a0a 100644
--- a/trytond_account.egg-info/PKG-INFO
+++ b/trytond_account.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-account
-Version: 3.2.8
+Version: 3.2.9
 Summary: Tryton module for accounting
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/trytond_account.egg-info/requires.txt b/trytond_account.egg-info/requires.txt
index bb80063..3f23da8 100644
--- a/trytond_account.egg-info/requires.txt
+++ b/trytond_account.egg-info/requires.txt
@@ -3,4 +3,4 @@ python-sql
 trytond_company >= 3.2, < 3.3
 trytond_currency >= 3.2, < 3.3
 trytond_party >= 3.2, < 3.3
-trytond >= 3.2, < 3.3
\ No newline at end of file
+trytond >= 3.2, < 3.3
-- 
tryton-modules-account



More information about the tryton-debian-vcs mailing list