Better "Journal items" shortcut button on partner form view, to go directly to the "account" of the customer or supplier

This commit is contained in:
Alexis de Lattre
2015-11-24 16:33:59 +01:00
parent ccd7df2f3b
commit d699052b6a
2 changed files with 53 additions and 1 deletions

View File

@@ -111,6 +111,19 @@
</field>
</record>
<!-- On the partner form, when a user clicks on the journal items
we wants to see only the account payable or account receivable -->
<record id="partner_view_button_journal_item_count" model="ir.ui.view">
<field name="name">usability.res.partner.journal.items.button</field>
<field name="model">res.partner</field>
<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="attributes">
<attribute name="type">object</attribute>
<attribute name="name">show_partner_receivable_or_payable_account</attribute>
</button>
</field>
</record>
</data>
</openerp>