[tryton-debian-vcs] tryton-modules-account-fr branch debian-stretch-4.0 updated. debian/4.0.2-1-5-g7d926ca
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Sun Jun 11 22:34:50 UTC 2017
The following commit has been merged in the debian-stretch-4.0 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-account-fr.git;a=commitdiff;h=debian/4.0.2-1-5-g7d926ca
commit 7d926caf563a9d25e1f79e45d84073f0ff5da6d0
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Jun 11 22:58:07 2017 +0200
Releasing debian version 4.0.3-1.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/debian/changelog b/debian/changelog
index 43b6413..3a2bde6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+tryton-modules-account-fr (4.0.3-1) unstable; urgency=medium
+
+ * Setting the branch in the watch file to the fixed version 4.0.
+ * Add the actual upstream maintainer key to signing-key.asc.
+ * Merging upstream version 4.0.3.
+ * Updating copyright file.
+
+ -- Mathias Behrle <mathiasb at m9s.biz> Sun, 11 Jun 2017 22:58:07 +0200
+
tryton-modules-account-fr (4.0.2-1) unstable; urgency=medium
* Updating to Standards-Version: 3.9.8, no changes needed.
commit a09330e0737ed3a756d279e86fc19651f0442ba4
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Jun 11 22:58:06 2017 +0200
Updating copyright file.
diff --git a/debian/copyright b/debian/copyright
index 3810808..9c5c376 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,10 +1,10 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: *
-Copyright: 2010-2016 Cédric Krier
+Copyright: 2010-2017 Cédric Krier
2010-2011 Bertrand Chenal
- 2010-2016 Nicolas Évrard
- 2010-2016 B2CK SPRL
+ 2010-2017 Nicolas Évrard
+ 2010-2017 B2CK SPRL
2014-2015 Raphaël Hertzog
License: GPL-3+
commit 10aa885846a601758b412f2bdffc442b1722017b
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Jun 11 22:58:06 2017 +0200
Merging upstream version 4.0.3.
diff --git a/CHANGELOG b/CHANGELOG
index d672ab2..baabedc 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.3 - 2017-06-06
+* Bug fixes (see mercurial logs for details)
+
Version 4.0.2 - 2016-08-02
* Bug fixes (see mercurial logs for details)
diff --git a/COPYRIGHT b/COPYRIGHT
index 842b29e..ee66f8a 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,7 +1,7 @@
-Copyright (C) 2010-2016 Cédric Krier.
+Copyright (C) 2010-2017 Cédric Krier.
Copyright (C) 2010-2011 Bertrand Chenal.
-Copyright (C) 2010-2016 Nicolas Évrard.
-Copyright (C) 2010-2016 B2CK SPRL.
+Copyright (C) 2010-2017 Nicolas Évrard.
+Copyright (C) 2010-2017 B2CK SPRL.
Copyright (C) 2014-2015 Raphaël Hertzog.
This program is free software: you can redistribute it and/or modify
diff --git a/PKG-INFO b/PKG-INFO
index 634fe0c..deee5ba 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_account_fr
-Version: 4.0.2
+Version: 4.0.3
Summary: Tryton module with French chart of accounts
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/account.py b/account.py
index 9017054..25e4007 100644
--- a/account.py
+++ b/account.py
@@ -124,13 +124,16 @@ class AccountFrFEC(Wizard):
def get_format_date(self):
pool = Pool()
Lang = pool.get('ir.lang')
- fr, = Lang.search([('code', '=', 'fr_FR')])
- return lambda value: Lang.strftime(value, fr.code, '%Y%m%d')
+ return lambda value: Lang.strftime(value, 'fr_FR', '%Y%m%d')
def get_format_number(self):
pool = Pool()
Lang = pool.get('ir.lang')
- fr, = Lang.search([('code', '=', 'fr_FR')])
+ fr = Lang(
+ decimal_point=',',
+ thousands_sep='',
+ grouping='[]',
+ )
return lambda value: Lang.format(fr, '%.2f', value)
def get_start_balance(self):
@@ -147,10 +150,15 @@ class AccountFrFEC(Wizard):
accounts = Account.search([])
for account in accounts:
- if not account.credit and not account.debit:
+ if account.credit == account.debit:
continue
+ if account.debit > account.credit:
+ debit, credit = account.debit - account.credit, 0
+ else:
+ debit, credit = 0, account.debit - account.credit
yield [
- self.start.deferral_journal.code,
+ self.start.deferral_journal.code
+ or self.start.deferral_journal.name,
self.start.deferral_journal.name,
self.start.deferral_post_number,
format_date(self.start.fiscalyear.start_date),
@@ -158,11 +166,11 @@ class AccountFrFEC(Wizard):
account.name,
'',
'',
- '',
+ '-',
format_date(self.start.fiscalyear.start_date),
- '',
- format_number(account.debit or 0),
- format_number(account.credit or 0),
+ '-',
+ format_number(debit),
+ format_number(credit),
'',
'',
format_date(self.start.fiscalyear.start_date),
@@ -195,7 +203,7 @@ class AccountFrFEC(Wizard):
if line.reconciliation and line.reconciliation.date <= end_date:
reconciliation = line.reconciliation
return [
- line.move.journal.code,
+ line.move.journal.code or line.move.journal.name,
line.move.journal.name,
line.move.post_number,
format_date(line.move.date),
@@ -203,9 +211,9 @@ class AccountFrFEC(Wizard):
line.account.name,
line.party.code if line.party else '',
line.party.name if line.party else '',
- self.get_reference(line),
+ self.get_reference(line) or '-',
format_date(self.get_reference_date(line)),
- description(),
+ description() or '-',
format_number(line.debit or 0),
format_number(line.credit or 0),
reconciliation.rec_name if reconciliation else '',
diff --git a/setup.cfg b/setup.cfg
index 861a9f5..8bfd5a1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,4 @@
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
diff --git a/tryton.cfg b/tryton.cfg
index 8ae9ed4..9c86049 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.0.2
+version=4.0.3
depends:
account
party_siret
diff --git a/trytond_account_fr.egg-info/PKG-INFO b/trytond_account_fr.egg-info/PKG-INFO
index bbdb147..e62f2ba 100644
--- a/trytond_account_fr.egg-info/PKG-INFO
+++ b/trytond_account_fr.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-account-fr
-Version: 4.0.2
+Version: 4.0.3
Summary: Tryton module with French chart of accounts
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-account-fr
More information about the tryton-debian-vcs
mailing list