<commit_before><?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.0.xsd">
    
    <grid name="invoice-payment-grid" title="Payments" model="com.axelor.apps.account.db.InvoicePayment" orderBy="paymentDate">
		<hilite if="$moment(paymentDate).diff(invoice.dueDate,'days') &gt; 0" color="warning"/>
	    <field name="paymentDate"/>
	    <field name="amount" aggregate="sum"/>
		<field name="currency" form-view="currency-form" grid-view="currency-grid"/>
    	<field name="paymentMode" form-view="payment-mode-form" grid-view="payment-mode-grid"/>
		<field name="companyBankDetails" form-view="bank-details-form" grid-view="bank-details-grid"/>
	    <field name="typeSelect"/>
    	<field name="move" form-view="move-form" grid-view="move-grid"/>
    	<field name="statusSelect"/>
   		<button name="cancel" icon="fa-times-circle" onClick="action-invoice-payment-method-cancel" readonlyIf="statusSelect == 2"/>
	</grid>
    
    <form name="invoice-payment-form" title="Payment"
        model="com.axelor.apps.account.db.InvoicePayment"
        onNew="action-invoice-payment-group-new">
		<panel name="main" readonlyIf="statusSelect != 0">
            <field name="amount"/>
            <field name="currency" canEdit="false"
                form-view="currency-form" grid-view="currency-grid"/>
            <panel itemSpan="12">
                <field name="paymentDate"/>
                <field name="delayReason"
                    showIf="paymentDate &gt; invoice.dueDate" readonly="false"/>
            </panel>
            <panel itemSpan="12">
                <field name="invoice.dueDate"
                    showIf="paymentDate &gt; invoice.dueDate"/>
                <field name="paymentMode"
                    onChange="action-invoice-payment-method-fill-bank-details"
                    form-view="payment-mode-form" grid-view="payment-mode-grid"/>
            </panel>
            <field name="companyBankDetails"
                onSelect="action-invoice-payment-method-bank-details-domain"
                form-view="bank-details-form" grid-view="bank-details-grid"/>
            <field name="bankDepositDate" showIf="paymentMode.typeSelect == 7"/>
            <field name="chequeNumber" showIf="paymentMode.typeSelect == 7"/>
            <field name="paymentMode.typeSelect" hidden="true"/>
            <field name="invoice" hidden="true" />
		</panel>
		<panel showIf="id">
			<field name="move" form-view="move-form" grid-view="move-grid"/>
			<field name="bankOrder" if-module="axelor-bank-payment" showIf="bankOrder" form-view="bank-order-form" grid-view="bank-order-grid"/>
			<field name="statusSelect" showIf="(paymentMode.typeSelect == 2 || paymentMode.typeSelect  == 9) &amp;&amp; paymentMode.inOutSelect == 2"/>
			<field name="statusSelect" hideIf="(paymentMode.typeSelect == 2 || paymentMode.typeSelect  == 9) &amp;&amp; paymentMode.inOutSelect == 2" selection-in="[0,1,2]"/>
			<button name="cancel" title="Cancel" readonlyIf="statusSelect == 2" icon="fa-times-circle" onClick="action-invoice-payment-method-cancel"/>
		</panel>
	</form>

	
	<action-group name="action-invoice-payment-group-new">
		<action name="action-invoice-payment-record-new"/>
		<action name="action-invoice-payment-attrs-new"/>
		<action name="action-invoice-payment-method-new"/>
	</action-group>
	
	<action-record name="action-invoice-payment-record-new" model="com.axelor.apps.account.db.InvoicePayment"><commit_msg>Redmine 9016: No more need of panel with itemSpan, move the paymentMode before paymentDate to have the delayReason and invoice.dueDate on the same line<commit_after><?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.0.xsd">
    
    <grid name="invoice-payment-grid" title="Payments" model="com.axelor.apps.account.db.InvoicePayment" orderBy="paymentDate">
		<hilite if="$moment(paymentDate).diff(invoice.dueDate,'days') &gt; 0" color="warning"/>
	    <field name="paymentDate"/>
	    <field name="amount" aggregate="sum"/>
		<field name="currency" form-view="currency-form" grid-view="currency-grid"/>
    	<field name="paymentMode" form-view="payment-mode-form" grid-view="payment-mode-grid"/>
		<field name="companyBankDetails" form-view="bank-details-form" grid-view="bank-details-grid"/>
	    <field name="typeSelect"/>
    	<field name="move" form-view="move-form" grid-view="move-grid"/>
    	<field name="statusSelect"/>
   		<button name="cancel" icon="fa-times-circle" onClick="action-invoice-payment-method-cancel" readonlyIf="statusSelect == 2"/>
	</grid>
    
    <form name="invoice-payment-form" title="Payment"
        model="com.axelor.apps.account.db.InvoicePayment"
        onNew="action-invoice-payment-group-new">
		<panel name="main" readonlyIf="statusSelect != 0">
            <field name="amount"/>
            <field name="currency" canEdit="false"
                form-view="currency-form" grid-view="currency-grid"/>
            <field name="paymentMode"
                onChange="action-invoice-payment-method-fill-bank-details"
                form-view="payment-mode-form" grid-view="payment-mode-grid"/>
            <field name="paymentDate"/>
            <field name="delayReason"
                showIf="paymentDate &gt; invoice.dueDate" readonly="false"/>
            <field name="invoice.dueDate"
                showIf="paymentDate &gt; invoice.dueDate"/>
            <field name="companyBankDetails"
                onSelect="action-invoice-payment-method-bank-details-domain"
                form-view="bank-details-form" grid-view="bank-details-grid"/>
            <field name="bankDepositDate" showIf="paymentMode.typeSelect == 7"/>
            <field name="chequeNumber" showIf="paymentMode.typeSelect == 7"/>
            <field name="paymentMode.typeSelect" hidden="true"/>
            <field name="invoice" hidden="true" />
		</panel>
		<panel showIf="id">
			<field name="move" form-view="move-form" grid-view="move-grid"/>
			<field name="bankOrder" if-module="axelor-bank-payment" showIf="bankOrder" form-view="bank-order-form" grid-view="bank-order-grid"/>
			<field name="statusSelect" showIf="(paymentMode.typeSelect == 2 || paymentMode.typeSelect  == 9) &amp;&amp; paymentMode.inOutSelect == 2"/>
			<field name="statusSelect" hideIf="(paymentMode.typeSelect == 2 || paymentMode.typeSelect  == 9) &amp;&amp; paymentMode.inOutSelect == 2" selection-in="[0,1,2]"/>
			<button name="cancel" title="Cancel" readonlyIf="statusSelect == 2" icon="fa-times-circle" onClick="action-invoice-payment-method-cancel"/>
		</panel>
	</form>

	
	<action-group name="action-invoice-payment-group-new">
		<action name="action-invoice-payment-record-new"/>
		<action name="action-invoice-payment-attrs-new"/>
		<action name="action-invoice-payment-method-new"/>
	</action-group>
	
	<action-record name="action-invoice-payment-record-new" model="com.axelor.apps.account.db.InvoicePayment">
{'fraction_non_alphanumeric': 0.17424035039693403, 'fraction_numerical': 0.007938680536545305, 'mean_word_length': 3.6159191408717626, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 2, '>': 91, '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': '5041891', 'n_tokens_mistral': 2364, 'n_tokens_neox': 2231, 'n_words': 342}