diff options
Diffstat (limited to 'fixco_custom/views/account_move.xml')
| -rw-r--r-- | fixco_custom/views/account_move.xml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml index 421dc49..0e0b381 100644 --- a/fixco_custom/views/account_move.xml +++ b/fixco_custom/views/account_move.xml @@ -16,10 +16,20 @@ <button type="object" name="action_view_related_payment" class="oe_stat_button" icon="fa-pencil-square-o" - attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}"> + attrs="{'invisible': [('count_payment', '=', 0)]}"> <field name="count_payment" widget="statinfo" string="Payments"/> </button> + <button type="object" name="action_view_related_reverse" + class="oe_stat_button" + icon="fa-book" + attrs="{'invisible': [('count_reverse', '=', 0)]}"> + <field name="count_reverse" widget="statinfo" string="Retur"/> + </button> </button> + + <xpath expr="//button[@name='%(account.action_view_account_move_reversal)d']" position="attributes"> + <attribute name="context">{'default_journal_id': journal_id}</attribute> + </xpath> <field name="payment_reference" position="after"> <field name="invoice_marketplace" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/> |
