<commit_before><?xml version="1.0" encoding="UTF-8"?>
<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_4.1.xsd">
    
    <grid name="payment-voucher-grid" title="Payment vouchers" model="com.axelor.apps.account.db.PaymentVoucher">
        <field name="ref"/>
        <field name="operationTypeSelect"/>
        <field name="user" form-view="user-form" grid-view="user-grid"/>
        <field name="paymentMode" grid-view="payment-mode-grid" form-view="payment-mode-form"/>
        <field name="paymentDate"/>
        <field name="partner" form-view="partner-form" grid-view="partner-grid"/>
        <field name="paidAmount" aggregate="sum"/>
        <field name="generatedMove" form-view="move-form" grid-view="move-grid"/>
        <field name="currency" form-view="currency-form" grid-view="currency-grid"/>
        <field name="statusSelect"/>
    </grid>

	<form name="payment-voucher-form" title="Payment voucher" model="com.axelor.apps.account.db.PaymentVoucher"  
	onNew="action-account-payment-voucher-onnew-group"
	onLoad="action-account-payment-voucher-onload-group" 
	onSave="com.axelor.apps.account.web.PaymentVoucherController:paymentVoucherSetNum">
	
		<panel name="main" readonlyIf="statusSelect == 2" itemSpan="12">
			 <field name="ref" readonly="true" colSpan="4"/>
			 <field name="operationTypeSelect" colSpan="4" onChange="action-payment-voucher-hidden-fields-if-purchase"/>
			 <field name="user" canEdit="false" colSpan="4" form-view="user-form" grid-view="user-grid"/>
			 <field name="paymentDate" colSpan="4" required="true"/>
			 <field name="company" canEdit="false" widget="SuggestBox" colSpan="4" form-view="company-form" grid-view="company-grid" onChange="action-payment-voucher-method-fill-bank-details"/>
			 <field name="hasAutoInput" colSpan="4" hidden="true"/>
		</panel>
		
		<panel sidebar="true" name="payboxGroup" title="Paybox" readonlyIf="statusSelect == 2">
			<panel name="payboxEmail" title="Add an email for payment through Paybox" hidden="true">
				<label title="The payer doesn't have email attached. Please input/provide the email to use."/>
				<field name="email" widget="Email"/>
				<field name="toSaveEmailOk"/>
				<button name="validateEmail" title="Validate"   onClick="save,com.axelor.apps.account.web.PayboxController:addPayboxEmail,save"/>
				<field name="defaultEmailOk"/>
			</panel>
			<panel>
				<button name="paybox" title="Paybox"   onClick="action-group-account-payment-voucher-paybox-onclick"/>
				<field name="bankCardTransactionNumber"/>
				<field name="payboxPaidOk" onChange="action-pv-hide-confirm-button,action-attrs-payment-voucher-readonly-status"/>
			</panel>
		</panel>
		
		<panel sidebar="true" name="info" title="Info" itemSpan="6" readonly="true">
			<field name="statusSelect"/>
			<field name="generatedMove" showIf="statusSelect == 2" form-view="move-form" grid-view="move-grid"/>
			<field name="receiptNo" showIf="statusSelect == 2"/>
		</panel>
		
		<panel sidebar="true" name="actions" title="Actions" stacked="true">
			<button name="confirmPaymentVoucher" title="Confirm payment" onClick="action-group-account-payment-voucher-confirm-click" showIf="statusSelect == 1"/>
			<button name="printPaymentVoucher" title="Print receipt" icon="fa-print" onClick="save,com.axelor.apps.account.web.PaymentVoucherController:printPaymentVoucher" showIf="statusSelect == 2"/>
		</panel>
		
		<panel name="payer" title="Payer" itemSpan="12" readonlyIf="statusSelect == 2">
			<field name="partner" form-view="partner-form" grid-view="partner-grid" colSpan="4" onChange="action-pv-record-default-partner-inf" onSelect="action-payment-voucher-set-partner-domain" />
			<field name="paymentMode" grid-view="payment-mode-grid" form-view="payment-mode-form" colSpan="4" widget="SuggestBox" onChange="action-group-account-payment-voucher-paymentmode-onchange" onSelect="action-set-payment-mode-domain"/>
			<field name="companyBankDetails" form-view="bank-details-form" grid-view="bank-details-grid" colSpan="4" onSelect="com.axelor.apps.base.web.CompanyBankDetailsController:fillCompanyBankDetailsDomain"/>
		</panel>
		
		<panel colSpan="12" showIf="statusSelect == 1">
			<button name="loadMoveLines" title="Search elements to pay" onClick="save,com.axelor.apps.account.web.PaymentVoucherController:loadMoveLines,save" colSpan="6"/>
		</panel>
		
		<panel readonlyIf="statusSelect == 2 || payboxPaidOk" colSpan="12">
		 	<field name="paidAmount" colSpan="4"/>
			<field name="currency" canEdit="false" colSpan="4" form-view="currency-form" grid-view="currency-grid"/>
			<field name="remainingAmount" readonly="true" colSpan="4"/>
			<field name="moveLine" onChange="action-record-fill-paidAmount-fromMoveLine,action-pv-moveLine-attrs" onSelect="action-pv-moveLine-domain" colSpan="4" showIf="operationTypeSelect == 3 || operationTypeSelect == 4" form-view="move-line-form" grid-view="move-line-grid"/>
		</panel>
		
		<panel-stack readonlyIf="statusSelect == 2">
			<panel-related colSpan="12" field="payVoucherDueElementList"  form-view="pay-voucher-due-element-form" grid-view="pay-voucher-due-element-grid" showIf="statusSelect == 1"/>
			<panel colSpan="12" showIf="statusSelect == 1">
				<button name="loadSelectedLines" title="Load selected lines" onClick="com.axelor.apps.account.web.PaymentVoucherController:loadSelectedLines,save" colSpan="6"/>
				<button name="resetImputation" title="Reset imputation" onClick="com.axelor.apps.account.web.PaymentVoucherController:resetImputation,save" colSpan="6"/>
			</panel>
			<panel-related colSpan="12" field="payVoucherElementToPayList" form-view="pay-voucher-element-to-pay-form" grid-view="pay-voucher-element-to-pay-grid"/>
		</panel-stack>
		
	</form>
	
	<action-record name="action-pv-record-default-partner-inf" model="com.axelor.apps.account.db.PaymentVoucher">
		<field name="paymentMode" if="(operationTypeSelect == 2 || operationTypeSelect == 3)" expr="eval: partner?.inPaymentMode"/>
		<field name="paymentMode" if="(operationTypeSelect == 1 || operationTypeSelect == 4)" expr="eval: partner?.outPaymentMode"/>
		<field name="currency" expr="eval: partner ? partner.currency : company?.currency"/>
	</action-record>
    
    <action-group name="action-account-payment-voucher-onnew-group">
	    <action name="action-payment-voucher-attrs-hidden-paybox-email"/>
	    <action name="action-record-payment-voucher-default-record"/>
	    <action name="action-pv-hide-confirm-button"/>
	    <action name="action-payment-voucher-getDate"/>
	    <action name="action-pv-attrs-hidden-bankCardTransactionNumber"/>
	    <action name="action-attrs-payment-voucher-hidden-receipt"/>
	    <action name="action-attrs-payment-voucher-readonly-status"/>
	    <action name="action-payment-voucher-hidden-fields-if-purchase"/>
		<action name="action-attrs-payment-voucher-hidden-bank-details"/>
    </action-group>
    
    <action-group name="action-account-payment-voucher-onload-group">
	    <action name="action-payment-voucher-attrs-hidden-paybox-email"/>
	    <action name="action-pv-hide-confirm-button"/>
	    <action name="action-pv-attrs-hidden-bankCardTransactionNumber"/>
	    <action name="action-attrs-payment-voucher-hidden-receipt"/>
	    <action name="action-attrs-payment-voucher-readonly-status"/>
	    <action name="action-payment-voucher-hidden-fields-if-purchase"/>
		<action name="action-attrs-payment-voucher-hidden-bank-details"/>
    </action-group>
    
    <action-group name="action-group-account-payment-voucher-confirm-click">
    	<action name="save"/>
    	<action name="action-method-account-payment-voucher-confirm"/>
    	<action name="action-attrs-payment-voucher-readonly-status"/>
    </action-group>
    
    <action-group name="action-group-account-payment-voucher-paymentmode-onchange">
    	<action name="action-pv-attrs-hidden-bankCardTransactionNumber"/>
    	<action name="action-pv-hide-confirm-button"/>
    	<action name="action-attrs-payment-voucher-hidden-receipt"/>
    	<action name="action-attrs-payment-voucher-readonly-status"/>
        <action name="action-payment-voucher-method-fill-bank-details"/>
    </action-group>
    
    <action-group name="action-group-account-payment-voucher-paybox-onclick">
    	<action name="save"/>
    	<action name="action-method-account-payment-voucher-set-num"/>
    	<action name="action-payment-voucher-attrs-hidden-paybox-email"/>
    	<action name="action-method-account-payment-voucher-paybox"/>
    </action-group>
    
    <action-method name="action-method-account-payment-voucher-paybox">
    	<call class="com.axelor.apps.account.web.PayboxController" method="paybox"/>
    </action-method>
    
    <action-method name="action-method-account-payment-voucher-set-num">
    	<call class="com.axelor.apps.account.web.PaymentVoucherController" method="paymentVoucherSetNum"/>
    </action-method>
    
    <action-method name="action-method-account-payment-voucher-confirm">
    	<call class="com.axelor.apps.account.web.PaymentVoucherController" method="confirmPaymentVoucher"/>
    </action-method>
    
 
  	<action-record name="action-record-fill-paidAmount-fromMoveLine" model="com.axelor.apps.account.db.PaymentVoucher">
   		<field name="paidAmount" expr="eval: moveLine?.amountRemaining"/>
	</action-record>
	 
	<action-attrs name="action-pv-moveLine-attrs">
		<attribute name="readonly" for="paidAmount" expr="eval: moveLine != null || payboxPaidOk"/>
	</action-attrs>
	
   	<action-attrs name="action-pv-hide-confirm-button">
   		<attribute name="hidden" for="confirmPaymentVoucher" expr="eval: statusSelect == 2 || (!payboxPaidOk &amp;&amp; paymentMode?.typeSelect == 6)"/>
   	</action-attrs>
   	
	<action-attrs name="action-attrs-payment-voucher-hidden-receipt">
		<attribute name="hidden" for="receiptNo" expr="eval: __repo__.of(AccountManagement).all().filter('self.company.id = ?1 AND self.paymentMode.id = ?2',company?.id,paymentMode?.id).fetchOne()?.journal?.editReceiptOk == false || statusSelect != 2"  if="paymentMode != null"/>
		<attribute name="hidden" for="printPaymentVoucher" expr="eval: __repo__.of(AccountManagement).all().filter('self.company.id = ?1 AND self.paymentMode.id = ?2',company?.id,paymentMode?.id).fetchOne()?.journal?.editReceiptOk == false || statusSelect != 2"  if="paymentMode != null"/>
	</action-attrs>
	
	<action-attrs name="action-attrs-payment-voucher-readonly-status">
		<attribute name="hidden" for="paybox" expr="eval: payboxPaidOk || paymentMode?.typeSelect != 6 || operationTypeSelect != 3"/>
		<attribute name="hidden" for="payboxGroup" expr="eval: paymentMode?.typeSelect != 6 || operationTypeSelect != 3"/>
		<attribute name="readonly" for="paidGroup" expr="eval: statusSelect == 2 || payboxPaidOk"/>
	</action-attrs>
	
	<action-attrs name="action-pv-attrs-hidden-bankCardTransactionNumber">
		<attribute name="hidden" for="bankCardTransactionNumber" expr="eval: paymentMode?.typeSelect != 6 || operationTypeSelect != 3"/>
		<attribute name="hidden" for="paybox" expr="eval: paymentMode?.typeSelect != 6 || operationTypeSelect != 3"/>
	</action-attrs>
	
	<action-attrs name="action-pv-moveLine-domain">
		<attribute name="domain" for="moveLine" expr="eval: &quot;self.account.reconcileOk = 't' and self.fromSchedulePaymentOk = 'f' and self.partner.id = ${partner?.id} and self.move.statusSelect = 3 and self.amountRemaining &gt; 0.0  and self.credit &gt; 0.0&quot;"/>
	</action-attrs>

	<action-attrs name="action-attrs-payment-voucher-hidden-bank-details">
		<attribute for="companyBankDetails" name="hidden" expr="eval: !__config__.general.getManageMultiBanks()"/>
	</action-attrs>
	
	<action-record name="action-record-payment-voucher-default-record" model="com.axelor.apps.account.db.PaymentVoucher">
		<field name="user" expr="eval:__user__"/>
		<field name="company"  expr="eval:__user__.activeCompany" if="__user__.activeCompany != null"/>
    	<field name="company"  expr="eval:__repo__.of(Company).all().fetchOne()" if="__user__.activeCompany == null &amp;&amp; __repo__.of(Company).all().fetch().size == 1"/>
		<field name="operationTypeSelect" expr="eval: _operationTypeSelect"/>
		<field name="currency"  expr="eval:__user__.activeCompany?.currency"/>
		<field name="currency"  expr="eval:__repo__.of(Company).all().fetchOne()?.currency" if="__user__.activeCompany == null &amp;&amp; __repo__.of(Company).all().fetch().size == 1"/><commit_msg>Fix domain error in customer payment voucher<commit_after><?xml version="1.0" encoding="UTF-8"?>
<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_4.1.xsd">
    
    <grid name="payment-voucher-grid" title="Payment vouchers" model="com.axelor.apps.account.db.PaymentVoucher">
        <field name="ref"/>
        <field name="operationTypeSelect"/>
        <field name="user" form-view="user-form" grid-view="user-grid"/>
        <field name="paymentMode" grid-view="payment-mode-grid" form-view="payment-mode-form"/>
        <field name="paymentDate"/>
        <field name="partner" form-view="partner-form" grid-view="partner-grid"/>
        <field name="paidAmount" aggregate="sum"/>
        <field name="generatedMove" form-view="move-form" grid-view="move-grid"/>
        <field name="currency" form-view="currency-form" grid-view="currency-grid"/>
        <field name="statusSelect"/>
    </grid>

	<form name="payment-voucher-form" title="Payment voucher" model="com.axelor.apps.account.db.PaymentVoucher"  
	onNew="action-account-payment-voucher-onnew-group"
	onLoad="action-account-payment-voucher-onload-group" 
	onSave="com.axelor.apps.account.web.PaymentVoucherController:paymentVoucherSetNum">
	
		<panel name="main" readonlyIf="statusSelect == 2" itemSpan="12">
			 <field name="ref" readonly="true" colSpan="4"/>
			 <field name="operationTypeSelect" colSpan="4" onChange="action-payment-voucher-hidden-fields-if-purchase"/>
			 <field name="user" canEdit="false" colSpan="4" form-view="user-form" grid-view="user-grid"/>
			 <field name="paymentDate" colSpan="4" required="true"/>
			 <field name="company" canEdit="false" widget="SuggestBox" colSpan="4" form-view="company-form" grid-view="company-grid" onChange="action-payment-voucher-method-fill-bank-details"/>
			 <field name="hasAutoInput" colSpan="4" hidden="true"/>
		</panel>
		
		<panel sidebar="true" name="payboxGroup" title="Paybox" readonlyIf="statusSelect == 2">
			<panel name="payboxEmail" title="Add an email for payment through Paybox" hidden="true">
				<label title="The payer doesn't have email attached. Please input/provide the email to use."/>
				<field name="email" widget="Email"/>
				<field name="toSaveEmailOk"/>
				<button name="validateEmail" title="Validate"   onClick="save,com.axelor.apps.account.web.PayboxController:addPayboxEmail,save"/>
				<field name="defaultEmailOk"/>
			</panel>
			<panel>
				<button name="paybox" title="Paybox"   onClick="action-group-account-payment-voucher-paybox-onclick"/>
				<field name="bankCardTransactionNumber"/>
				<field name="payboxPaidOk" onChange="action-pv-hide-confirm-button,action-attrs-payment-voucher-readonly-status"/>
			</panel>
		</panel>
		
		<panel sidebar="true" name="info" title="Info" itemSpan="6" readonly="true">
			<field name="statusSelect"/>
			<field name="generatedMove" showIf="statusSelect == 2" form-view="move-form" grid-view="move-grid"/>
			<field name="receiptNo" showIf="statusSelect == 2"/>
		</panel>
		
		<panel sidebar="true" name="actions" title="Actions" stacked="true">
			<button name="confirmPaymentVoucher" title="Confirm payment" onClick="action-group-account-payment-voucher-confirm-click" showIf="statusSelect == 1"/>
			<button name="printPaymentVoucher" title="Print receipt" icon="fa-print" onClick="save,com.axelor.apps.account.web.PaymentVoucherController:printPaymentVoucher" showIf="statusSelect == 2"/>
		</panel>
		
		<panel name="payer" title="Payer" itemSpan="12" readonlyIf="statusSelect == 2">
			<field name="partner" form-view="partner-form" grid-view="partner-grid" colSpan="4" onChange="action-pv-record-default-partner-inf" onSelect="action-payment-voucher-set-partner-domain" />
			<field name="paymentMode" grid-view="payment-mode-grid" form-view="payment-mode-form" colSpan="4" widget="SuggestBox" onChange="action-group-account-payment-voucher-paymentmode-onchange" onSelect="action-set-payment-mode-domain"/>
			<field name="companyBankDetails" form-view="bank-details-form" grid-view="bank-details-grid" colSpan="4" onSelect="com.axelor.apps.base.web.CompanyBankDetailsController:fillCompanyBankDetailsDomain"/>
		</panel>
		
		<panel colSpan="12" showIf="statusSelect == 1">
			<button name="loadMoveLines" title="Search elements to pay" onClick="save,com.axelor.apps.account.web.PaymentVoucherController:loadMoveLines,save" colSpan="6"/>
		</panel>
		
		<panel readonlyIf="statusSelect == 2 || payboxPaidOk" colSpan="12">
		 	<field name="paidAmount" colSpan="4"/>
			<field name="currency" canEdit="false" colSpan="4" form-view="currency-form" grid-view="currency-grid"/>
			<field name="remainingAmount" readonly="true" colSpan="4"/>
			<field name="moveLine" onChange="action-record-fill-paidAmount-fromMoveLine,action-pv-moveLine-attrs" onSelect="action-pv-moveLine-domain" colSpan="4" showIf="operationTypeSelect == 3 || operationTypeSelect == 4" form-view="move-line-form" grid-view="move-line-grid"/>
		</panel>
		
		<panel-stack readonlyIf="statusSelect == 2">
			<panel-related colSpan="12" field="payVoucherDueElementList"  form-view="pay-voucher-due-element-form" grid-view="pay-voucher-due-element-grid" showIf="statusSelect == 1"/>
			<panel colSpan="12" showIf="statusSelect == 1">
				<button name="loadSelectedLines" title="Load selected lines" onClick="com.axelor.apps.account.web.PaymentVoucherController:loadSelectedLines,save" colSpan="6"/>
				<button name="resetImputation" title="Reset imputation" onClick="com.axelor.apps.account.web.PaymentVoucherController:resetImputation,save" colSpan="6"/>
			</panel>
			<panel-related colSpan="12" field="payVoucherElementToPayList" form-view="pay-voucher-element-to-pay-form" grid-view="pay-voucher-element-to-pay-grid"/>
		</panel-stack>
		
	</form>
	
	<action-record name="action-pv-record-default-partner-inf" model="com.axelor.apps.account.db.PaymentVoucher">
		<field name="paymentMode" if="(operationTypeSelect == 2 || operationTypeSelect == 3)" expr="eval: partner?.inPaymentMode"/>
		<field name="paymentMode" if="(operationTypeSelect == 1 || operationTypeSelect == 4)" expr="eval: partner?.outPaymentMode"/>
		<field name="currency" expr="eval: partner ? partner.currency : company?.currency"/>
	</action-record>
    
    <action-group name="action-account-payment-voucher-onnew-group">
	    <action name="action-payment-voucher-attrs-hidden-paybox-email"/>
	    <action name="action-record-payment-voucher-default-record"/>
	    <action name="action-pv-hide-confirm-button"/>
	    <action name="action-payment-voucher-getDate"/>
	    <action name="action-pv-attrs-hidden-bankCardTransactionNumber"/>
	    <action name="action-attrs-payment-voucher-hidden-receipt"/>
	    <action name="action-attrs-payment-voucher-readonly-status"/>
	    <action name="action-payment-voucher-hidden-fields-if-purchase"/>
		<action name="action-attrs-payment-voucher-hidden-bank-details"/>
    </action-group>
    
    <action-group name="action-account-payment-voucher-onload-group">
	    <action name="action-payment-voucher-attrs-hidden-paybox-email"/>
	    <action name="action-pv-hide-confirm-button"/>
	    <action name="action-pv-attrs-hidden-bankCardTransactionNumber"/>
	    <action name="action-attrs-payment-voucher-hidden-receipt"/>
	    <action name="action-attrs-payment-voucher-readonly-status"/>
	    <action name="action-payment-voucher-hidden-fields-if-purchase"/>
		<action name="action-attrs-payment-voucher-hidden-bank-details"/>
    </action-group>
    
    <action-group name="action-group-account-payment-voucher-confirm-click">
    	<action name="save"/>
    	<action name="action-method-account-payment-voucher-confirm"/>
    	<action name="action-attrs-payment-voucher-readonly-status"/>
    </action-group>
    
    <action-group name="action-group-account-payment-voucher-paymentmode-onchange">
    	<action name="action-pv-attrs-hidden-bankCardTransactionNumber"/>
    	<action name="action-pv-hide-confirm-button"/>
    	<action name="action-attrs-payment-voucher-hidden-receipt"/>
    	<action name="action-attrs-payment-voucher-readonly-status"/>
        <action name="action-payment-voucher-method-fill-bank-details"/>
    </action-group>
    
    <action-group name="action-group-account-payment-voucher-paybox-onclick">
    	<action name="save"/>
    	<action name="action-method-account-payment-voucher-set-num"/>
    	<action name="action-payment-voucher-attrs-hidden-paybox-email"/>
    	<action name="action-method-account-payment-voucher-paybox"/>
    </action-group>
    
    <action-method name="action-method-account-payment-voucher-paybox">
    	<call class="com.axelor.apps.account.web.PayboxController" method="paybox"/>
    </action-method>
    
    <action-method name="action-method-account-payment-voucher-set-num">
    	<call class="com.axelor.apps.account.web.PaymentVoucherController" method="paymentVoucherSetNum"/>
    </action-method>
    
    <action-method name="action-method-account-payment-voucher-confirm">
    	<call class="com.axelor.apps.account.web.PaymentVoucherController" method="confirmPaymentVoucher"/>
    </action-method>
    
 
  	<action-record name="action-record-fill-paidAmount-fromMoveLine" model="com.axelor.apps.account.db.PaymentVoucher">
   		<field name="paidAmount" expr="eval: moveLine?.amountRemaining"/>
	</action-record>
	 
	<action-attrs name="action-pv-moveLine-attrs">
		<attribute name="readonly" for="paidAmount" expr="eval: moveLine != null || payboxPaidOk"/>
	</action-attrs>
	
   	<action-attrs name="action-pv-hide-confirm-button">
   		<attribute name="hidden" for="confirmPaymentVoucher" expr="eval: statusSelect == 2 || (!payboxPaidOk &amp;&amp; paymentMode?.typeSelect == 6)"/>
   	</action-attrs>
   	
	<action-attrs name="action-attrs-payment-voucher-hidden-receipt">
		<attribute name="hidden" for="receiptNo" expr="eval: __repo__.of(AccountManagement).all().filter('self.company.id = ?1 AND self.paymentMode.id = ?2',company?.id,paymentMode?.id).fetchOne()?.journal?.editReceiptOk == false || statusSelect != 2"  if="paymentMode != null"/>
		<attribute name="hidden" for="printPaymentVoucher" expr="eval: __repo__.of(AccountManagement).all().filter('self.company.id = ?1 AND self.paymentMode.id = ?2',company?.id,paymentMode?.id).fetchOne()?.journal?.editReceiptOk == false || statusSelect != 2"  if="paymentMode != null"/>
	</action-attrs>
	
	<action-attrs name="action-attrs-payment-voucher-readonly-status">
		<attribute name="hidden" for="paybox" expr="eval: payboxPaidOk || paymentMode?.typeSelect != 6 || operationTypeSelect != 3"/>
		<attribute name="hidden" for="payboxGroup" expr="eval: paymentMode?.typeSelect != 6 || operationTypeSelect != 3"/>
		<attribute name="readonly" for="paidGroup" expr="eval: statusSelect == 2 || payboxPaidOk"/>
	</action-attrs>
	
	<action-attrs name="action-pv-attrs-hidden-bankCardTransactionNumber">
		<attribute name="hidden" for="bankCardTransactionNumber" expr="eval: paymentMode?.typeSelect != 6 || operationTypeSelect != 3"/>
		<attribute name="hidden" for="paybox" expr="eval: paymentMode?.typeSelect != 6 || operationTypeSelect != 3"/>
	</action-attrs>
	
	<action-attrs name="action-pv-moveLine-domain">
		<attribute name="domain" for="moveLine" expr="eval: &quot;self.account.reconcileOk = 't' and self.partner.id = ${partner?.id?: 0} and self.move.statusSelect = 3 and self.amountRemaining &gt; 0.0  and self.credit &gt; 0.0&quot;"/>
	</action-attrs>

	<action-attrs name="action-attrs-payment-voucher-hidden-bank-details">
		<attribute for="companyBankDetails" name="hidden" expr="eval: !__config__.general.getManageMultiBanks()"/>
	</action-attrs>
	
	<action-record name="action-record-payment-voucher-default-record" model="com.axelor.apps.account.db.PaymentVoucher">
		<field name="user" expr="eval:__user__"/>
		<field name="company"  expr="eval:__user__.activeCompany" if="__user__.activeCompany != null"/>
    	<field name="company"  expr="eval:__repo__.of(Company).all().fetchOne()" if="__user__.activeCompany == null &amp;&amp; __repo__.of(Company).all().fetch().size == 1"/>
		<field name="operationTypeSelect" expr="eval: _operationTypeSelect"/>
		<field name="currency"  expr="eval:__user__.activeCompany?.currency"/>
		<field name="currency"  expr="eval:__repo__.of(Company).all().fetchOne()?.currency" if="__user__.activeCompany == null &amp;&amp; __repo__.of(Company).all().fetch().size == 1"/>
{'fraction_non_alphanumeric': 0.17432292082767437, 'fraction_numerical': 0.0066709275385475756, 'mean_word_length': 5.158671586715867, 'pattern_counts': {'":': 0, '<': 315, '<?xml version=': 2, '>': 315, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4937295', 'n_tokens_mistral': 8449, 'n_tokens_neox': 7898, 'n_words': 1161}