[FIX] regression on shortcut button on partner form view after PR #41

This commit is contained in:
Mourad Elhadj Mimoune
2017-10-10 17:35:32 +02:00
parent 3888495071
commit 145ab11996

View File

@@ -309,6 +309,12 @@ module -->
<field name="inherit_id" ref="account.partner_view_button_journal_item_count"/>
<field name="arch" type="xml">
<button name="%(account.action_account_moves_all_tree)d" position="after">
<button name="show_receivable_account" type="object"
attrs="{'invisible': [('customer', '=', False)]}"
icon="fa-list" class="oe_stat_button">
<field string="Journal Items" name="journal_item_count"
widget="statinfo"/>
</button>
<button name="show_payable_account" type="object"
attrs="{'invisible': [('supplier', '=', False)]}"
icon="fa-list" class="oe_stat_button">
@@ -319,9 +325,6 @@ module -->
<button name="%(account.action_account_moves_all_tree)d" position="attributes">
<attribute name="invisible">True</attribute>
</button>
<button name="%(account.action_account_moves_all_tree)d" position="after">
<button type="object" class="oe_stat_button" name="show_receivable_account" icon="fa-list" attrs="{'invisible': [('customer', '=', False)]}"/>
</button>
<field name="journal_item_count" position="attributes">
<attribute name="string">Receivable Account</attribute>
</field>