diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-09-22 13:46:48 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-09-22 13:46:48 +0700 |
| commit | 60fffef5ee0c91ba58a056823fc2feff6241a303 (patch) | |
| tree | 9135ec67b5f509d74787e8869d4b11b60e39d7fb /indoteknik_custom/views | |
| parent | b5c15f8ee9171ade6f3d11415a383b0a9f936110 (diff) | |
add calculate margin including delivery fee in purchase order
Diffstat (limited to 'indoteknik_custom/views')
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 8 | ||||
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 6 |
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> |
