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..6ed7b4a5 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 ''}
+ ## account code
+ ${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..89112c34 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
@@ -188,8 +188,8 @@
total_balance += partner.get('balance', 0.0)
%>
-
${partner_ref if partner_ref else ''}
${partner_name if partner_name else _('Unallocated') }
+
${partner_ref if partner_ref else ''}
%if comparison_mode == 'no_comparison':
%if initial_balance_mode:
${formatLang(partner.get('init_balance', 0.0)) | amount}
@@ -229,10 +229,10 @@