Display view account move button only when move exists
This commit is contained in:
@@ -190,7 +190,8 @@
|
|||||||
<xpath expr="//field[@name='line_ids']/tree/field[@name='bank_account_id']" position="after">
|
<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 -->
|
<!-- 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"
|
<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>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user