[tryton-debian-vcs] tryton-modules-analytic-account branch debian-jessie-3.4 updated. debian/3.4.2-1-2-g46c2fd3
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 debian-jessie-3.4 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-analytic-account.git;a=commitdiff;h=debian/3.4.2-1-2-g46c2fd3
commit 46c2fd389a9ff4274be408921e39e2d5c2f4b7c3
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Dec 23 15:46:37 2015 +0100
Releasing debian version 3.4.3-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index 5f76939..db8dcfe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+tryton-modules-analytic-account (3.4.3-1) unstable; urgency=medium
+
+ * Merging upstream version 3.4.3.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Wed, 23 Dec 2015 15:46:37 +0100
+
tryton-modules-analytic-account (3.4.2-1) unstable; urgency=medium
* Wrapping and sorting control files (wrap-and-sort -bts).
commit ca2665ab2508fe3cd2d002ff391d150f437c0569
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Dec 23 15:46:36 2015 +0100
Merging upstream version 3.4.3.
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