diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-08-05 10:49:44 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-08-05 10:49:44 +0700 |
| commit | 323da166ce71a8a14bedad816d3bbddb9a84139e (patch) | |
| tree | e8d669b8b47d9d716fb01aea4523d267874bddeb /fixco_custom/views | |
| parent | cdcc160fdebac61179c8d8889f5d9c08a698c523 (diff) | |
skema retur req iqmal
Diffstat (limited to 'fixco_custom/views')
| -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')]}"/> |
