diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-07-28 15:19:50 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-07-28 15:19:50 +0700 |
| commit | c99a62f139fd7dfad7ffb2911eaaa7e7b95c7dd5 (patch) | |
| tree | ddfecef3f18ea6379ad15dc343da3dfef26fdd5e /fixco_custom/views | |
| parent | 9519acabf66956f7af58a1bdad137c1e86480b57 (diff) | |
push
Diffstat (limited to 'fixco_custom/views')
| -rw-r--r-- | fixco_custom/views/account_move.xml | 3 | ||||
| -rwxr-xr-x | fixco_custom/views/sale_order.xml | 9 | ||||
| -rwxr-xr-x | fixco_custom/views/stock_picking.xml | 2 | ||||
| -rw-r--r-- | fixco_custom/views/upload_bills.xml | 2 |
4 files changed, 13 insertions, 3 deletions
diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml index 3615fb7..daa5707 100644 --- a/fixco_custom/views/account_move.xml +++ b/fixco_custom/views/account_move.xml @@ -10,7 +10,8 @@ <button name="open_reconcile_view" position="after"> <button type="object" name="action_view_related_payment" class="oe_stat_button" - icon="fa-pencil-square-o"> + icon="fa-pencil-square-o" + attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}"> <field name="count_payment" widget="statinfo" string="Payments"/> </button> </button> diff --git a/fixco_custom/views/sale_order.xml b/fixco_custom/views/sale_order.xml index 137ded1..0dfd9af 100755 --- a/fixco_custom/views/sale_order.xml +++ b/fixco_custom/views/sale_order.xml @@ -6,6 +6,15 @@ <field name="model">sale.order</field> <field name="inherit_id" ref="sale.view_order_form"/> <field name="arch" type="xml"> + <xpath expr="//button[@name='action_view_invoice']" position="before"> + <button type="object" + name="action_view_related_payment" + class="oe_stat_button" + icon="fa-pencil-square-o" + attrs="{'invisible': [('count_payment', '=', 0)]}" groups="base.group_user"> + <field name="count_payment" widget="statinfo" string="Payments"/> + </button> + </xpath> <button id="action_confirm" position="after"> <button name="open_form_uangmuka_penjualan" string="UangMuka" diff --git a/fixco_custom/views/stock_picking.xml b/fixco_custom/views/stock_picking.xml index c7890f7..073cd47 100755 --- a/fixco_custom/views/stock_picking.xml +++ b/fixco_custom/views/stock_picking.xml @@ -25,7 +25,7 @@ <button name="action_create_invoice_from_mr" string="Create Bill" type="object" - attrs="{'invisible': [('state', '!=', 'done')]}" + attrs="{'invisible': [('state', '!=', 'done'), ('picking_type_code', '!=', 'incoming')]}" /> </button> diff --git a/fixco_custom/views/upload_bills.xml b/fixco_custom/views/upload_bills.xml index a90546f..472fefc 100644 --- a/fixco_custom/views/upload_bills.xml +++ b/fixco_custom/views/upload_bills.xml @@ -52,7 +52,7 @@ <menuitem id="menu_upload_bills" name="Upload Bills" - parent="sale.menu_sale_report" + parent="purchase.menu_procurement_management" sequence="4" action="upload_bills_action" /> |
