<?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">
	
	<form name="app-account-config-form" title="App account" model="com.axelor.apps.base.db.AppAccount" canDelete="false" canNew="false" width="large">
		<panel name="mainPanel">
			<field name="manageAnalyticAccounting"  widget="boolean-switch"/>
			<field name="analyticDistributionTypeSelect"  showIf="manageAnalyticAccounting"/>
			<field name="manageCustomerCredit" widget="boolean-switch"/>
			<field name="manageFactors" widget="Boolean-switch"/>
			<field name="manageAdvancePaymentInvoice" widget="boolean-switch"/>
            <field name="paymentVouchersOnInvoice" widget="boolean-switch"/>
            <field name="activatePassedForPayment" widget="boolean-switch"/>
			<panel name="rejectsReasonsAndCodesListPanel" title="Rejects reasons and codes list" colSpan="12">
				<field name="transferAndDirectDebitInterbankCode" grid-view="interbank-code-grid" form-view="interbank-code-form"/>
				<field name="chequeInterbankCode" grid-view="interbank-code-grid" form-view="interbank-code-form"/>
			</panel>
            <field name="partnerBalConfigSelect"/>
		</panel>
		<panel-tabs name="mainPanelTab">
			<panel name="accountConfigurationsPanel" title="Account configurations">
				<button name="generateAccountConfigurationsBtn" title="Generate account configurations" colSpan="4" onClick="save,com.axelor.apps.account.web.AppAccountController:generateAccountConfigurations"/>
				<panel-dashlet name="accountConfigPanel" action="admin.root.conf.account.config" colSpan="12" title="Account configurations" />
			</panel>
			<panel name="payerQualityPanel" title="Payer quality" colSpan="12">
				<button name="payerQualityProcessBtn" title="Compute payers quality" colSpan="2" onClick="action-app-account-method-payer-quality-process"/>
				<field name="payerQualityConfigLineList" colSpan="12" grid-view="payer-quality-config-line-grid" form-view="payer-quality-config-line-form"/>
			</panel>
		</panel-tabs>
		<panel-mail name="mailPanel">
			<mail-messages limit="4"/>
			<mail-followers/>
		</panel-mail>
	</form>

	<action-method name="action-app-account-method-payer-quality-process">
		<call class="com.axelor.apps.account.web.AppAccountController" method="payerQualityProcess" />
	</action-method>

	<action-view name="admin.root.conf.account.config" title="Account configurations"
		model="com.axelor.apps.account.db.AccountConfig" >
		<view type="grid" name="account-config-grid"/>
		<view type="form" name="account-config-form"/>
	</action-view>
	
</object-views>
