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/purchase_order.xml | |
| parent | b5c15f8ee9171ade6f3d11415a383b0a9f936110 (diff) | |
add calculate margin including delivery fee in purchase order
Diffstat (limited to 'indoteknik_custom/views/purchase_order.xml')
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 8 |
1 files changed, 8 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> |
