summaryrefslogtreecommitdiff
path: root/fixco_custom/views/sale_order.xml
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/views/sale_order.xml')
-rwxr-xr-xfixco_custom/views/sale_order.xml9
1 files changed, 9 insertions, 0 deletions
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"