summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-08-18 11:42:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-08-18 11:42:50 +0700
commit9a97cf1790f913a9fcb9ea4744154305d6ca1ced (patch)
tree9be27427180db8f7778bcd8cf8350e0464f06ce6 /indoteknik_custom/views
parent2d400be8110ebc7471022455c59a135658d014ed (diff)
sales order approval
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/sale_order.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
new file mode 100755
index 00000000..e0b4ab4d
--- /dev/null
+++ b/indoteknik_custom/views/sale_order.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<odoo>
+ <data>
+ <record id="sale_order_form_view_inherit" model="ir.ui.view">
+ <field name="name">Sale Order</field>
+ <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>
+ <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_total']" position="after">
+ <field name="item_margin" groups="sales_team.group_sale_manager"/>
+ <field name="item_percent_margin" groups="sales_team.group_sale_manager"/>
+ </xpath>
+ <field name="amount_total" position="after">
+ <field name="total_margin" groups="sales_team.group_sale_manager"/>
+ <field name="total_percent_margin" groups="sales_team.group_sale_manager"/>
+ </field>
+ </field>
+ </record>
+ </data>
+ <data>
+ <record id="sale_order_tree_view_inherit" model="ir.ui.view">
+ <field name="name">Sale Order</field>
+ <field name="model">sale.order</field>
+ <field name="inherit_id" ref="sale.view_quotation_tree_with_onboarding"/>
+ <field name="arch" type="xml">
+ <field name="state" position="after">
+ <field name="approval_status" />
+ </field>
+ </field>
+ </record>
+ </data>
+</odoo> \ No newline at end of file