[IMP] account_invoice_margin: add margin_percent and improve tests

This commit is contained in:
Jared Kipe
2023-04-18 22:53:06 +00:00
parent eb4dd60f06
commit 48bbf8d896
4 changed files with 50 additions and 48 deletions

View File

@@ -8,6 +8,9 @@
<field name="arch" type="xml">
<xpath expr="//field[@name='amount_residual']" position="after">
<field name="margin" groups="base.group_user"/>
<span class="oe_inline" groups="base.group_user">
(<field name="margin_percent" nolabel="1" class="oe_inline" widget="percentage"/>)
</span>
</xpath>
<xpath expr="//field[@name='invoice_line_ids']//field[@name='price_unit']" position="after">
<field name="purchase_price" groups="base.group_user"/>