summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/purchase_order.xml8
-rwxr-xr-xindoteknik_custom/views/sale_order.xml6
2 files changed, 14 insertions, 0 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml
index f209d18a..7df2ca9f 100755
--- a/indoteknik_custom/views/purchase_order.xml
+++ b/indoteknik_custom/views/purchase_order.xml
@@ -17,6 +17,14 @@
<field name="date_order" position="before">
<field name="sale_order_id" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/>
</field>
+ <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_subtotal']" position="after">
+ <field name="item_margin"/>
+ <field name="item_percent_margin"/>
+ </xpath>
+ <field name="amount_total" position="after">
+ <field name="total_margin"/>
+ <field name="total_percent_margin"/>
+ </field>
</field>
</record>
</data>
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index 19182a6b..b2466b0d 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -6,6 +6,12 @@
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
+ <button id="action_confirm" position="after">
+ <button name="sale_order_approve"
+ string="Ask Approval"
+ type="object"
+ />
+ </button>
<field name="payment_term_id" position="after">
<field name="approval_status" />
</field>