Display view account move button only when move exists

This commit is contained in:
Alexis de Lattre
2016-06-01 22:51:08 +02:00
parent 7f239bdc87
commit f1ad1dd547

View File

@@ -190,7 +190,8 @@
<xpath expr="//field[@name='line_ids']/tree/field[@name='bank_account_id']" position="after">
<!-- The cancel button is provided by the account_cancel module, but we don't want to depend on it -->
<button name="show_account_move" type="object"
string="View Account Move" icon="gtk-redo"/>
string="View Account Move" icon="gtk-redo"
attrs="{'invisible': [('journal_entry_id', '=', False)]}"/>
</xpath>
</field>
</record>