[FIX] account: top button display fix

Multiple button had weird display where the number was not aligned with the text, and the spacing between the number and the text was missing

closes odoo/odoo#103336

X-original-commit: 92e923c8ef4419206dd78a61720a0df5c98b8f59
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Maximilien La Barre (malb) <malb@odoo.com>
This commit is contained in:
maximilien(malb)
2022-10-18 11:21:10 +02:00
parent e2793ff7f1
commit 8f7565601c
+17 -11
View File
@@ -193,29 +193,35 @@
<button name="button_open_invoices" type="object"
class="oe_stat_button" icon="fa-bars"
attrs="{'invisible': [('reconciled_invoices_count','=', 0)]}">
<field name="reconciled_invoices_count"/>
<span attrs="{'invisible': ['|',('reconciled_invoices_type','!=','invoice'),('reconciled_invoices_count','&gt;', 1)]}">Invoice</span>
<span attrs="{'invisible': ['|',('reconciled_invoices_type','!=','invoice'),('reconciled_invoices_count','&lt;=', 1)]}">Invoices</span>
<span attrs="{'invisible': ['|',('reconciled_invoices_type','=','invoice'),('reconciled_invoices_count','&gt;', 1)]}">Credit Note</span>
<span attrs="{'invisible': ['|',('reconciled_invoices_type','=','invoice'),('reconciled_invoices_count','&lt;=', 1)]}">Credit Notes</span>
<div class="o_form_field o_stat_info">
<span class="o_stat_text">
<field name="reconciled_invoices_count"/>
<span attrs="{'invisible': [('reconciled_invoices_type', '!=', 'invoice')]}"> Invoice</span>
<span attrs="{'invisible': [('reconciled_invoices_type', '=', 'invoice')]}"> Credit Note</span>
</span>
</div>
</button>
<!-- Bill stat button -->
<button name="button_open_bills" type="object"
class="oe_stat_button" icon="fa-bars"
attrs="{'invisible': [('reconciled_bills_count','=', 0)]}">
<field name="reconciled_bills_count"/>
<span attrs="{'invisible': [('reconciled_bills_count','&gt;', 1)]}">Bill</span>
<span attrs="{'invisible': [('reconciled_bills_count','&lt;=', 1)]}">Bills</span>
<div class="o_form_field o_stat_info">
<span class="o_stat_text">
<field name="reconciled_bills_count"/>
<span> Bill</span>
</span>
</div>
</button>
<!-- Statement stat button -->
<button name="button_open_statement_lines" type="object"
class="oe_stat_button" icon="fa-bars"
attrs="{'invisible': [('reconciled_statement_lines_count','=', 0)]}">
<field name="reconciled_statement_lines_count"/>
<span attrs="{'invisible': [('reconciled_statement_lines_count','&gt;', 1)]}">Statement line</span>
<span attrs="{'invisible': [('reconciled_statement_lines_count','&lt;=', 1)]}">Statement lines</span>
<div class="o_form_field o_stat_info">
<field name="reconciled_statement_lines_count"/>
<span> Transaction</span>
</div>
</button>
<!-- Journal Entry button -->