Skip to content

Commit

Permalink
[IMP] sale_margin_delivered: Improve UI
Browse files Browse the repository at this point in the history
Display % using the percentage widget and put all the new fields after the orginal margin fields from odoo. (prior to this change, the new fields were displayed among the margin fields from Odoo
  • Loading branch information
lmignon committed Jun 19, 2024
1 parent 2d89d03 commit 4514ace
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sale_margin_delivered/views/sale_margin_delivered_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale_margin.sale_margin_sale_order_line_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='margin']" position="after">
<xpath expr="//field[@name='margin_percent']" position="after">
<field
name="purchase_price_delivery"
string="Cost Price dlvd."
Expand All @@ -16,6 +16,8 @@
name="margin_delivered_percent"
string="Margin dlvd. (%)"
optional="hide"
attrs="{'invisible': [('price_subtotal', '=', 0)]}"
widget="percentage"
/>
<field name="margin_delivered" string="Margin dlvd." optional="hide" />
</xpath>
Expand Down

0 comments on commit 4514ace

Please sign in to comment.