<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://axelor.com/xml/ns/object-views"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://axelor.com/xml/ns/object-views http://axelor.com/xml/ns/object-views/object-views_5.2.xsd">
    <grid name="pay-voucher-due-element-grid" title="Invoices to pay" model="com.axelor.apps.account.db.PayVoucherDueElement" orderBy="moveLine.dueDate">
        <field name="moveLine.dueDate"/>
        <field name="moveLine" width="135" form-view="move-line-form" grid-view="move-line-grid"/>
        <field name="moveLine.move.invoice" width="120"/>
        <field name="currency" form-view="currency-form" grid-view="currency-grid"/>
        <field name="dueAmount" aggregate="sum"/>
        <field name="paidAmount" aggregate="sum"/>
        <field name="amountRemaining" aggregate="sum"/>
    </grid>
    <form name="pay-voucher-due-element-form" title="Invoices to pay" model="com.axelor.apps.account.db.PayVoucherDueElement"  >
        <panel name="mainPanel" >
        	<field name="moveLine" form-view="move-line-form" grid-view="move-line-grid"/>
	        <field name="moveLine.move.invoice"  grid-view="invoice-grid" form-view="invoice-form"/>
	        <field name="moveLine.dueDate"/>
	        <field name="currency" canEdit="false" form-view="currency-form" grid-view="currency-grid"/>
	        <field name="dueAmount"/>
	        <field name="paidAmount"/>
	        <field name="amountRemaining"/>
        </panel>
    </form>
</object-views>
