You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

32 lines
1.4 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.ui.view" id="view_invoice_tree_margin">
<field name="name">account.invoice.tree.margin</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_invoice_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='amount_total_signed']" position="after">
<field name="margin_amount"/>
<field name="margin_percentage"/>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="view_move_form_margin">
<field name="name">account.move.form.margin</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@id='invoice_tab']//group//group/field[@name='narration']" position="after">
<group class="oe_right">
<field name="margin_amount"/>
<field name="margin_percentage" widget="percentage"/>
</group>
</xpath>
<xpath expr="//field[@name='invoice_line_ids']/tree//field[@name='price_subtotal']" position="before">
<field name="margin_amount"/>
<field name="margin_percentage" widget="percentage"/>
</xpath>
</field>
</record>
</odoo>