Browse Source

account_financial_report: Increase columns width in general ledger

Before this commit, amounts such as "10'000.00 CHF" were exceeding their
columns width. Label column could be reduced as it's printed correctly
over two different lines.
pull/749/head
Akim Juillerat 5 years ago
committed by João Marques
parent
commit
bcc6aa983a
  1. 30
      account_financial_report/report/templates/general_ledger.xml

30
account_financial_report/report/templates/general_ledger.xml

@ -156,7 +156,7 @@
<div class="act_as_cell" style="width: 12.01%;">Partner <div class="act_as_cell" style="width: 12.01%;">Partner
</div> </div>
<!--## ref - label--> <!--## ref - label-->
<div class="act_as_cell" style="width: 22.9%;">Ref -
<div class="act_as_cell" style="width: 16.9%;">Ref -
Label</div> Label</div>
<t t-if="show_cost_center"> <t t-if="show_cost_center">
<!--## cost_center--> <!--## cost_center-->
@ -170,14 +170,11 @@
<!--## matching_number--> <!--## matching_number-->
<div class="act_as_cell" style="width: 2.41%;">Rec.</div> <div class="act_as_cell" style="width: 2.41%;">Rec.</div>
<!--## debit--> <!--## debit-->
<div class="act_as_cell amount" style="width: 6.02%;">Debit</div>
<div class="act_as_cell amount" style="width: 8.02%;">Debit</div>
<!--## credit--> <!--## credit-->
<div class="act_as_cell amount" style="width: 6.02%;">Credit</div>
<div class="act_as_cell amount" style="width: 8.02%;">Credit</div>
<!--## balance cumulated--> <!--## balance cumulated-->
<div
class="act_as_cell amount"
style="width: 6.02%;"
>Cumul. Bal.</div>
<div class="act_as_cell amount" style="width: 8.02%;">Cumul. Bal.</div>
<t t-if="foreign_currency"> <t t-if="foreign_currency">
<!--## currency_name--> <!--## currency_name-->
<div class="act_as_cell" style="width: 2.08%;">Cur.</div> <div class="act_as_cell" style="width: 2.08%;">Cur.</div>
@ -730,17 +727,12 @@
/> - <span /> - <span
t-esc="o._get_atr_from_dict(account['id'], accounts_data, 'name')" t-esc="o._get_atr_from_dict(account['id'], accounts_data, 'name')"
/></div> /></div>
<div
class="act_as_cell right"
style="width: 22.9%;"
>Ending balance</div>
<div class="act_as_cell right"
style="width: 16.9%;">Ending balance</div>
</t> </t>
<t t-if='type == "partner_type"'> <t t-if='type == "partner_type"'>
<div class="act_as_cell first_column" style="width: 41.32%;" />
<div
class="act_as_cell right"
style="width: 22.9%;"
>Partner ending balance</div>
<div class="act_as_cell first_column" style="width: 41.32%;"/>
<div class="act_as_cell right" style="width: 16.9%;">Partner ending balance</div>
</t> </t>
<t t-if="show_cost_center"> <t t-if="show_cost_center">
<!--## cost_center--> <!--## cost_center-->
@ -753,21 +745,21 @@
<!--## matching_number--> <!--## matching_number-->
<div class="act_as_cell" style="width: 2.41%;" /> <div class="act_as_cell" style="width: 2.41%;" />
<!--## debit--> <!--## debit-->
<div class="act_as_cell amount" style="width: 6.02%;">
<div class="act_as_cell amount" style="width: 8.02%;">
<span <span
t-esc="account_or_partner_object['fin_bal']['debit']" t-esc="account_or_partner_object['fin_bal']['debit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</div> </div>
<!--## credit--> <!--## credit-->
<div class="act_as_cell amount" style="width: 6.02%;">
<div class="act_as_cell amount" style="width: 8.02%;">
<span <span
t-esc="account_or_partner_object['fin_bal']['credit']" t-esc="account_or_partner_object['fin_bal']['credit']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/> />
</div> </div>
<!--## balance cumulated--> <!--## balance cumulated-->
<div class="act_as_cell amount" style="width: 6.02%;">
<div class="act_as_cell amount" style="width: 8.02%;">
<span <span
t-esc="account_or_partner_object['fin_bal']['balance']" t-esc="account_or_partner_object['fin_bal']['balance']"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"

Loading…
Cancel
Save