diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-09-26 13:29:17 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-09-26 13:29:17 +0700 |
| commit | 18a08e93126100d572a56e4deced21434082bd72 (patch) | |
| tree | b56da2069dfa32cd2719178100b1cf9068cb9915 /indoteknik_custom/views | |
| parent | 6c2d70c8ba9e5ff2c3432a1752f3fbd50d8bec30 (diff) | |
Update sale_order.py and sale_order.xml - calculate margin with input purchase price
Diffstat (limited to 'indoteknik_custom/views')
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index 03a6b45c..0e2d2923 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -19,7 +19,7 @@ <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="vendor_id" attrs="{'readonly': [('parent.state', 'not in', ['draft', 'sent', 'sale'])]}"/> <field name="purchase_price" attrs="{'readonly': [('parent.state', 'not in', ['draft', 'sent', 'sale'])]}"/> <field name="purchase_tax_id" attrs="{'readonly': [('parent.state', 'not in', ['draft', 'sent', 'sale'])]}"/> <field name="item_margin" groups="sales_team.group_sale_manager"/> |
