Add direct access to account.move form from account.move.line tree view

Show code on name_get of journal add direct search on code
This commit is contained in:
Alexis de Lattre
2017-03-02 09:17:21 +01:00
parent b518594136
commit 84bf228d92
2 changed files with 56 additions and 4 deletions

View File

@@ -160,6 +160,12 @@ module -->
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<field name="ref" position="after">
<field name="default_move_line_name"/>
</field>
<xpath expr="//field[@name='line_ids']" position="attributes">
<attribute name="context">{'line_ids': line_ids, 'journal_id': journal_id, 'default_name': default_move_line_name}</attribute>
</xpath>
<xpath expr="//field[@name='line_ids']/tree/field[@name='date_maturity']" position="after">
<field name="full_reconcile_id"/>
</xpath>
@@ -208,6 +214,9 @@ module -->
<field name="credit" position="after">
<field name="full_reconcile_id"/>
</field>
<field name="date_maturity" position="after">
<button name="show_account_move_form" type="object" icon="fa-arrows-h" string="Show Journal Entry"/>
</field>
</field>
</record>