summaryrefslogtreecommitdiff
path: root/fixco_custom/views/purchase_order.xml
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/views/purchase_order.xml')
-rw-r--r--fixco_custom/views/purchase_order.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/fixco_custom/views/purchase_order.xml b/fixco_custom/views/purchase_order.xml
index de8c7bb..174929c 100644
--- a/fixco_custom/views/purchase_order.xml
+++ b/fixco_custom/views/purchase_order.xml
@@ -6,10 +6,25 @@
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
+ <xpath expr="//button[@name='action_view_invoice']" position="before">
+ <button type="object"
+ name="action_view_related_journals"
+ class="oe_stat_button"
+ icon="fa-book"
+ style="width: 200px;"
+ attrs="{'invisible': [('count_journals', '=', 0)]}">
+ <field name="count_journals" widget="statinfo" string="Journals"/>
+ </button>
+ </xpath>
+ <button id="draft_confirm" position="after">
+ <button name="fixco_custom.action_view_uangmuka_pembelian" string="UangMuka"
+ type="action" attrs="{'invisible': [('state', '!=', 'purchase')]}"/>
+ </button>
<field name="currency_id" position="after">
<field name="sale_order_id" readonly="1"/>
<field name="biaya_lain_lain"/>
<field name="source"/>
+ <field name="move_entry_id" readonly="1"/>
</field>
<field name="amount_untaxed" position="after">
<field name="amount_discount" class="oe_currency_line"/>