summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-06-05 11:43:02 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-06-05 11:43:02 +0700
commitadd53c91a49d43b20438b14cf48aaececbabf2cd (patch)
tree7738041e1c872baa9fd4215d5152df91cd33a0b6 /indoteknik_custom/views
parent9a3b6feba01b1d27524484f5e612e49412942414 (diff)
<miqdad> add before margin in order line
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/sale_order.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index 03c978a7..4b74825e 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -208,6 +208,11 @@
<label for="item_percent_margin"/>
<field name="item_percent_margin"/>
</div>
+ <div name="item_percent_margin_before" groups="base.group_no_one"
+ attrs="{'invisible': [('display_type', '!=', False)]}">
+ <label for="item_percent_margin_before"/>
+ <field name="item_percent_margin_before"/>
+ </div>
</div>
<div name="invoice_lines" position="before">
<div name="price_subtotal" groups="base.group_no_one"
@@ -239,6 +244,7 @@
attrs="{'readonly': [('parent.approval_status', '!=', False)]}"
domain="[('type_tax_use','=','purchase')]" options="{'no_create':True}"/>
<field name="item_percent_margin"/>
+ <field name="item_percent_margin_before"/>
<field name="item_margin" optional="hide"/>
<field name="margin_md" optional="hide"/>
<field name="note" optional="hide"/>