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.
 
 
 
 
 

43 lines
1.9 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inherited the tree view of sales for viewing the invoice details-->
<record id="view_quotation_tree_with_onboarding" model="ir.ui.view">
<field name="name">sale.order.view.tree.inherit.sale.invoice.detail
</field>
<field name="model">sale.order</field>
<field name="inherit_id"
ref="sale.view_quotation_tree_with_onboarding"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_status']" position="before">
<field name="invoiced_amount"/>
<field name="paid_amount"/>
<field name="due_amount"/>
</xpath>
</field>
</record>
<!-- Inherited the sale order form view for adding the smart button
that showing the paid amount percentage-->
<record id="view_order_form" model="ir.ui.view">
<field name="name">sale.order.view.form.inherit.sale.invoice.detail
</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='action_view_invoice']"
position="before">
<button type="object"
name="action_view_invoice"
class="oe_stat_button"
icon="fa-money"
attrs="{'invisible': [('invoice_count', '=', 0)]}">
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
<field name="paid_amount_percent" widget="statinfo"
nolabel="1" class="mr4"/>%<br/>Paid
</span>
</div>
</button>
</xpath>
</field>
</record>
</odoo>