summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-09-24 11:11:49 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-09-24 11:11:49 +0700
commit248fd7cb0c93e60bdfccaf095cdb601a3319b65e (patch)
tree61800ea7ded5d8a231dbaafb9e18ab288e53efbb /indoteknik_custom/views
parentf38c1291c45beebd9c44939aee1adbf46cdbd7dd (diff)
add several column in sales order and 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 b2466b0d..c101fe1b 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -13,9 +13,15 @@
/>
</button>
<field name="payment_term_id" position="after">
+ <field name="shipping_cost_covered"/>
+ </field>
+ <field name="partner_shipping_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="vendor" attrs="{'readonly': [('parent.state', 'not in', ['draft', 'sent', 'sale'])]}"/>
+ <field name="purchase_price" attrs="{'readonly': [('parent.state', 'not in', ['draft', 'sent', 'sale'])]}"/>
+ <field name="tax_id" attrs="{'readonly': [('parent.state', 'not in', ['draft', 'sent', 'sale'])]}"/>
<field name="item_margin" groups="sales_team.group_sale_manager"/>
<field name="item_percent_margin" groups="sales_team.group_sale_manager"/>
</xpath>