<?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-bank-payment-config-form" title="App bank payment" model="com.axelor.apps.base.db.AppBankPayment" canDelete="false" canNew="false" width="large">
        <panel name="mainPanel">
            <field name="manageDirectDebitPayment" widget="boolean-switch"/>
            <field name="manageCreditTransferPayment" widget="boolean-switch"/>
            <field name="manageBankToBankTransferPayment" widget="boolean-switch"/>
            <field name="enableEbicsModule" widget="boolean-switch"/>
        </panel>
        <panel name="configPanel">
            <button name="generateBankPaymentConfigurationsBtn" title="Generate bank payment configurations" colSpan="4"
                onClick="save,com.axelor.apps.bankpayment.web.AppBankPaymentController:generateBankPaymentConfigurations"/>
            <panel-dashlet name="bankPaymentConfigPanel" action="admin.root.conf.bank.payment.config" colSpan="12"/>
        </panel>
        
		<panel-mail name="mailPanel">
			<mail-messages limit="4"/>
			<mail-followers/>
		</panel-mail>
        
    </form>

    <action-view name="action-company-view-bank-payment-config" title="Bank payment config (${ name })" model="com.axelor.apps.bankpayment.db.BankPaymentConfig">
        <view type="form" name="bank-payment-config-form"/>
        <context name="_showRecord" expr="eval: __self__.bankPaymentConfig?.id"/>
        <context name="_company" expr="eval: __this__"/>
    </action-view>

    <action-view name="admin.root.conf.bank.payment.config" title="Bank payment configurations"
                 model="com.axelor.apps.bankpayment.db.BankPaymentConfig" >
        <view type="grid" name="bank-payment-config-grid"/>
        <view type="form" name="bank-payment-config-form"/>
    </action-view>

</object-views>