diff --git a/account_financial_report_webkit/report/common_partner_reports.py b/account_financial_report_webkit/report/common_partner_reports.py index 5ebd36c3..a6c2d8d8 100644 --- a/account_financial_report_webkit/report/common_partner_reports.py +++ b/account_financial_report_webkit/report/common_partner_reports.py @@ -238,7 +238,7 @@ class CommonPartnersReportHeaderWebkit(CommonReportHeaderWebkit): if existing_partner_ids: # We may use orm here as the performance optimization is not that big sql = ("SELECT name|| ' ' ||CASE WHEN ref IS NOT NULL THEN '('||ref||')' ELSE '' END, id, ref, name" - " FROM res_partner WHERE id IN %s ORDER BY name, ref") + " FROM res_partner WHERE id IN %s ORDER BY LOWER(name), ref") self.cursor.execute(sql, (tuple(set(existing_partner_ids)),)) res = self.cursor.fetchall() diff --git a/account_financial_report_webkit/report/templates/account_report_general_ledger.mako b/account_financial_report_webkit/report/templates/account_report_general_ledger.mako index df819cb4..3f5e59e7 100644 --- a/account_financial_report_webkit/report/templates/account_report_general_ledger.mako +++ b/account_financial_report_webkit/report/templates/account_report_general_ledger.mako @@ -95,10 +95,12 @@
${_('Entry')}
## journal
${_('Journal')}
+ ## account code +
${_('Account')}
## partner
${_('Partner')}
## label -
${_('Label')}
+
${_('Label')}
## counterpart
${_('Counter part')}
## debit @@ -133,6 +135,8 @@
## journal
+ ## account code +
## partner
## label @@ -175,6 +179,8 @@
${line.get('move_name') or ''}
## journal
${line.get('jcode') or ''}
+ ## journal +
${account.code}
## partner
${line.get('partner_name') or ''}
## label diff --git a/account_financial_report_webkit/report/templates/account_report_partner_balance.mako b/account_financial_report_webkit/report/templates/account_report_partner_balance.mako index 31b18fca..32e5ccc9 100644 --- a/account_financial_report_webkit/report/templates/account_report_partner_balance.mako +++ b/account_financial_report_webkit/report/templates/account_report_partner_balance.mako @@ -132,10 +132,10 @@
- ## code -
${_('Code / Ref')}
## account name
${_('Account / Partner Name')}
+ ## code +
${_('Code / Ref')}
%if comparison_mode == 'no_comparison': %if initial_balance_mode: ## initial balance @@ -229,10 +229,10 @@
- ## code -
${current_account.code}
## account name
${current_account.name}
+ ## code +
${current_account.code}
%if comparison_mode == 'no_comparison': %if initial_balance_mode: ## opening balance