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.
48 lines
2.4 KiB
48 lines
2.4 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Define the view for the invoice link form -->
|
|
<record id="link_invoice_view_form" model="ir.ui.view">
|
|
<field name="name">link.invoice.view.form</field>
|
|
<field name="model">link.invoice</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Link Invoice and Remove Invoices">
|
|
<field name="sale_order_id" invisible="1"/>
|
|
<field name='invoice_ids'
|
|
domain="[('move_type', '=', 'out_invoice')]">
|
|
<list>
|
|
<field name="link_invoice" widget="boolean_toggle"/>
|
|
<field name="name"/>
|
|
<field name="invoice_partner_display_name"/>
|
|
<field name="invoice_date"/>
|
|
<field name="invoice_date_due"/>
|
|
<field name="activity_ids"/>
|
|
<field name="amount_untaxed_signed"/>
|
|
<field name="amount_total_signed"/>
|
|
<field name="payment_state"
|
|
string="Payment"
|
|
widget="badge"
|
|
decoration-danger="payment_state == 'not_paid'"
|
|
decoration-warning="payment_state in ('partial', 'in_payment')"
|
|
decoration-success="payment_state in ('paid', 'reversed')"
|
|
optional="show"/>
|
|
<field name="state" widget="badge"
|
|
decoration-success="state == 'posted'"
|
|
decoration-info="state == 'draft'"
|
|
optional="show"/>
|
|
<field name="amount_untaxed_signed"
|
|
string="Tax Excluded" sum="Total"
|
|
optional="show"/>
|
|
<field name="company_currency_id"
|
|
column_invisible="True"/>
|
|
</list>
|
|
</field>
|
|
<footer>
|
|
<button name="action_add_invoices"
|
|
string="Add Invoices" type="object"
|
|
class="btn-primary"/>
|
|
<button special="cancel" string="Cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|