openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #02888
lp:~luc-demeyer/account-financial-report/bugfix-account_journal_report_xls into lp:account-financial-report
Luc De Meyer (Noviat) has proposed merging lp:~luc-demeyer/account-financial-report/bugfix-account_journal_report_xls into lp:account-financial-report.
Requested reviews:
Pedro Manuel Baeza (pedro.baeza)
For more details, see:
https://code.launchpad.net/~luc-demeyer/account-financial-report/bugfix-account_journal_report_xls/+merge/201660
This update fixes a bug in the PDF report when using the 'Group Entries' option (this bug doesn't exist in the XLS variant of this report).
--
https://code.launchpad.net/~luc-demeyer/account-financial-report/bugfix-account_journal_report_xls/+merge/201660
Your team Account Report Core Editors is subscribed to branch lp:account-financial-report.
=== modified file 'account_journal_report_xls/__init__.py'
--- account_journal_report_xls/__init__.py 2014-01-08 11:49:48 +0000
+++ account_journal_report_xls/__init__.py 2014-01-14 19:42:45 +0000
@@ -28,6 +28,4 @@
import logging
logging.getLogger('openerp.module').warning('report_xls not available in addons path. account_financial_report_webkit_xls will not be usable')
-
-
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== modified file 'account_journal_report_xls/__openerp__.py'
--- account_journal_report_xls/__openerp__.py 2013-12-19 17:08:40 +0000
+++ account_journal_report_xls/__openerp__.py 2014-01-14 19:42:45 +0000
@@ -3,7 +3,7 @@
#
# OpenERP, Open Source Management Solution
#
-# Copyright (c) 2013 Noviat nv/sa (www.noviat.com). All rights reserved.
+# Copyright (c) 2014 Noviat nv/sa (www.noviat.com). All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -12,11 +12,11 @@
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -47,9 +47,8 @@
'account_voucher',
'report_xls',
],
- 'demo_xml': [],
- 'init_xml': [],
- 'update_xml': [
+ 'demo': [],
+ 'data': [
'wizard/print_journal_wizard.xml',
],
}
=== modified file 'account_journal_report_xls/report/nov_account_journal.py'
--- account_journal_report_xls/report/nov_account_journal.py 2013-12-23 21:36:43 +0000
+++ account_journal_report_xls/report/nov_account_journal.py 2014-01-14 19:42:45 +0000
@@ -3,7 +3,7 @@
#
# OpenERP, Open Source Management Solution
#
-# Copyright (c) 2013 Noviat nv/sa (www.noviat.com). All rights reserved.
+# Copyright (c) 2014 Noviat nv/sa (www.noviat.com). All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -12,11 +12,11 @@
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
@@ -165,6 +165,10 @@
#_logger.warn('code_string= %s', code_string)
[x.update({'docname': eval(code_string) or '-'}) for x in lines]
+ # group lines
+ if self.group_entries:
+ lines = self._group_lines(lines)
+
# format debit, credit, amount_currency for pdf report
if self.display_currency and self.report_type == 'pdf':
curr_obj = self.pool.get('res.currency')
@@ -175,10 +179,6 @@
else:
[x.update({'amount1': self.formatLang(x['debit']), 'amount2': self.formatLang(x['credit'])}) for x in lines]
- # group lines
- if self.group_entries:
- lines = self._group_lines(lines)
-
# insert a flag in every move_line to indicate the end of a move
# this flag will be used to draw a full line between moves
for cnt in range(len(lines) - 1):
@@ -215,7 +215,7 @@
grouped_lines = [lines_in[0]]
move_id = lines_in[0]['move_id']
line_cnt = len(lines_in)
- for i in range(1,line_cnt):
+ for i in range(1, line_cnt):
line = lines_in[i]
if line['move_id'] == move_id:
grouped_lines.append(line)
Follow ups