[tryton-debian-vcs] tryton-modules-analytic-account branch upstream-3.4 updated. upstream/3.4.2-1-g56bd36a
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Wed Dec 23 16:51:35 UTC 2015
The following commit has been merged in the upstream-3.4 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-analytic-account.git;a=commitdiff;h=upstream/3.4.2-1-g56bd36a
commit 56bd36aaa039772c77f7c16f59b805b6c2eaace4
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Dec 23 15:46:36 2015 +0100
Adding upstream version 3.4.3.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index f53da44..642f5b0 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.4.3 - 2015-12-22
+* Bug fixes (see mercurial logs for details)
+
Version 3.4.2 - 2015-05-22
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index 50c970d..dd2eb41 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_analytic_account
-Version: 3.4.2
+Version: 3.4.3
Summary: Tryton module for analytic accounting
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/line.py b/line.py
index 7827033..2cab251 100644
--- a/line.py
+++ b/line.py
@@ -135,18 +135,19 @@ class Line(ModelSQL, ModelView):
class Move:
__name__ = 'account.move'
- def cancel(self, default=None):
+ def cancel(self):
'Reverse credit/debit of analytic lines'
pool = Pool()
AnalyticLine = pool.get('analytic_account.line')
- cancel_move = super(Move, self).cancel(default)
- analytic_lines = []
+ cancel_move = super(Move, self).cancel()
+ to_write = []
for line in cancel_move.lines:
for analytic_line in line.analytic_lines:
analytic_line.debit, analytic_line.credit = (
analytic_line.credit, analytic_line.debit)
- analytic_lines.append(analytic_line)
- AnalyticLine.save(analytic_lines)
+ to_write.extend(([analytic_line], analytic_line._save_values))
+ if to_write:
+ AnalyticLine.write(*to_write)
return cancel_move
diff --git a/tryton.cfg b/tryton.cfg
index 71dee61..8380a1f 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=3.4.2
+version=3.4.3
depends:
account
company
diff --git a/trytond_analytic_account.egg-info/PKG-INFO b/trytond_analytic_account.egg-info/PKG-INFO
index 7fd40dc..a34e617 100644
--- a/trytond_analytic_account.egg-info/PKG-INFO
+++ b/trytond_analytic_account.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-analytic-account
-Version: 3.4.2
+Version: 3.4.3
Summary: Tryton module for analytic accounting
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-analytic-account
More information about the tryton-debian-vcs
mailing list