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.
 
 
 
 
 

42 lines
2.3 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!-- Inheriting the account.move model form view -->
<record id="account_move_view_form" model="ir.ui.view">
<field name="name">account.move.view.form.inherit.progress.billing</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_date']" position="after">
<field name="progress_bill_title"
attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/>
<field name="project_id"
attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/>
</xpath>
<xpath expr="//group[hasclass('oe_invoice_lines_tab')]" position="after">
<group string="Progress Billing Information"
attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}">
<group>
<field name="total_progress_billing" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
<field name="invoice_to_date" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
<field name="remaining_progress_billing" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
</group>
<group>
<field name="previously_invoice" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
<field name="previously_invoice_due" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
<field name="current_invoice" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
<field name="less_paid_amount" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
<field name="total_due" widget="monetary"
options="{'currency_field': 'currency_id'}"/>
</group>
</group>
</xpath>
</field>
</record>
</odoo>