[tryton-debian-vcs] tryton-modules-account branch upstream-3.0 updated. upstream/3.0.7-1-gdae0ed8
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Wed Mar 4 00:28:49 UTC 2015
The following commit has been merged in the upstream-3.0 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-account.git;a=commitdiff;h=upstream/3.0.7-1-gdae0ed8
commit dae0ed8685d1a2452f1af73b772cabd2cedbc60b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Mar 3 12:32:16 2015 +0100
Adding upstream version 3.0.8.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index 90a08dc..223e021 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.0.8 - 2015-03-02
+* Bug fixes (see mercurial logs for details)
+
Version 3.0.7 - 2014-12-03
* Bug fixes (see mercurial logs for details)
diff --git a/COPYRIGHT b/COPYRIGHT
index 77715d8..3a28212 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,6 +1,6 @@
-Copyright (C) 2008-2014 Cédric Krier.
+Copyright (C) 2008-2015 Cédric Krier.
Copyright (C) 2008-2013 Bertrand Chenal.
-Copyright (C) 2008-2014 B2CK SPRL.
+Copyright (C) 2008-2015 B2CK SPRL.
Copyright (C) 2004-2008 Tiny SPRL.
This program is free software: you can redistribute it and/or modify
diff --git a/PKG-INFO b/PKG-INFO
index 9125dd4..209a799 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_account
-Version: 3.0.7
+Version: 3.0.8
Summary: Tryton module for accounting
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/journal.py b/journal.py
index cf27f3b..bbe4f0b 100644
--- a/journal.py
+++ b/journal.py
@@ -140,8 +140,8 @@ class Journal(ModelSQL, ModelView):
# Migration from 1.0 sequence Many2One change into Property
if table.column_exist('sequence'):
Property = Pool().get('ir.property')
- table = cls.__table__()
- cursor.execute(*table.select(table.id, table.sequence))
+ sql_table = cls.__table__()
+ cursor.execute(*sql_table.select(sql_table.id, sql_table.sequence))
with Transaction().set_user(0):
for journal_id, sequence_id in cursor.fetchall():
Property.set('sequence', cls._name,
diff --git a/move.py b/move.py
index 13e5379..abb3016 100644
--- a/move.py
+++ b/move.py
@@ -142,6 +142,11 @@ class Move(ModelSQL, ModelView):
def on_change_with_date(self):
Line = Pool().get('account.move.line')
date = self.date
+ if date:
+ if self.period and not (
+ self.period.start_date <= date <= self.period.end_date):
+ date = self.period.start_date
+ return date
lines = Line.search([
('journal', '=', self.journal),
('period', '=', self.period),
@@ -296,7 +301,7 @@ class Move(ModelSQL, ModelView):
cursor.execute(*line.select(line.move, line.id,
where=red_sql & (line.state == 'draft'),
order_by=line.move))
- move2draft_lines.update(dict((k, (j[1] for j in g))
+ move2draft_lines.update(dict((k, [j[1] for j in g])
for k, g in groupby(cursor.fetchall(), itemgetter(0))))
valid_moves = []
@@ -308,8 +313,7 @@ class Move(ModelSQL, ModelView):
# SQLite uses float for SUM
if not isinstance(amount, Decimal):
amount = Decimal(amount)
- draft_lines = MoveLine.browse(
- list(move2draft_lines.get(move.id, [])))
+ draft_lines = MoveLine.browse(move2draft_lines.get(move.id, []))
if not company.currency.is_zero(amount):
draft_moves.append(move.id)
continue
diff --git a/party.py b/party.py
index de9579f..c7f2d7b 100644
--- a/party.py
+++ b/party.py
@@ -173,7 +173,7 @@ class Party:
& (line.party != None)
& (line.reconciliation == None)
& (account.company == company_id)
- & today_query,
+ & line_query & today_query,
group_by=line.party,
having=Operator(Sum(Coalesce(line.debit, 0)
- Coalesce(line.credit, 0)),
diff --git a/setup.py b/setup.py
index 4540700..5de32c0 100644
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,9 @@ for dep in info.get('depends', []):
requires.append('trytond >= %s.%s, < %s.%s' %
(major_version, minor_version, major_version, minor_version + 1))
+tests_require = ['proteus >= %s.%s, < %s.%s' %
+ (major_version, minor_version, major_version, minor_version + 1)]
+
setup(name='trytond_account',
version=info.get('version', '0.0.1'),
description='Tryton module for accounting',
@@ -81,4 +84,5 @@ setup(name='trytond_account',
""",
test_suite='tests',
test_loader='trytond.test_loader:Loader',
+ tests_require=tests_require,
)
diff --git a/tryton.cfg b/tryton.cfg
index fea9798..87523cb 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=3.0.7
+version=3.0.8
depends:
company
currency
diff --git a/trytond_account.egg-info/PKG-INFO b/trytond_account.egg-info/PKG-INFO
index e003ae6..e67d665 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.0.7
+Version: 3.0.8
Summary: Tryton module for accounting
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-account
More information about the tryton-debian-vcs
mailing list