<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_4.1.xsd">

	<grid name="ebics-bank-grid" title="Ebics bank" model="com.axelor.apps.bankpayment.db.EbicsBank">
		<field name="hostId"/>
		<field name="name"/>
		<field name="url"/>
	</grid>

	<form name="ebics-bank-form" title="Ebics bank" model="com.axelor.apps.bankpayment.db.EbicsBank">
		<panel title="General informations">
			<field name="fullName" colSpan="12" showTitle="false" css="label-bold bold large" hideIf="!fullName" readonly="true"/>
			<field name="bank" canNew="true" onChange="action-ebics-bank-record-onchange-bank"/>
			<field name="hostId"/>
			<field name="fax" placeholder="+33000000000" pattern="^\+?(?:[0-9]{2,3}(?:\s|\.)?){3,6}[0-9]{2,3}$" onChange="action-ebics-bank-record-normalize-fax-phone-number"/>
			<field name="emailAddress" canSelect="false" colSpan="6" form-view="email-address-simple-form" x-show-icons="false">
				<editor x-show-titles="false">
					<field name="address" colSpan="12" placeholder="<EMAIL>" pattern="^[a-z0-9A-ZáàâäãåçéèêëíìîïñóòôöõúùûüýÿæœÁÀÂÄÃÅÇÉÈÊËÍÌÎÏÑÓÒÔÖÕÚÙÛÜÝŸÆŒ!#$%&amp;'*+/=?^_`{|}~-]+(?:\.[a-z0-9A-ZáàâäãåçéèêëíìîïñóòôöõúùûüýÿæœÁÀÂÄÃÅÇÉÈÊËÍÌÎÏÑÓÒÔÖÕÚÙÛÜÝŸÆŒ!#$%&amp;'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[a-z]{2,})$"/>
				</editor>
			</field>
			<field name="protocolSelect" required="true" />
			<field name="url" colSpan="12" pattern="http(s)?://.+" />
			<field name="languageSelect" />
			<field name="certValidityPeriodSelect" />
			<field name="useX509ExtentionForAutoSignedCert"/>
		</panel>

		<panel-related field="ebicsCertificateList" form-view="ebics-certificate-form" grid-view="ebics-certificate-grid"/>
		
		<panel-dashlet hideIf="!bank" action="action-ebics-bank-view-bank-details"/>
		
		<panel-dashlet action="action-ebics-bank-view-ebics-users"/>
	</form>
	
	<action-record name="action-ebics-bank-record-normalize-fax-phone-number" model="com.axelor.apps.bankpayment.db.EbicsBank">
		<field name="fax" expr="call:com.axelor.apps.bankpayment.ebics.web.EbicsBankController:normalizeFaxNumber(fax)"/>
	</action-record>

	<action-record name="action-ebics-bank-record-onchange-bank" model="com.axelor.apps.bankpayment.db.EbicsBank">
		<field name="hostId" expr="eval: bank?.code"/>
	</action-record>

	<action-view name="action-ebics-bank-view-bank-details" model="com.axelor.apps.base.db.BankDetails" title="Bank Details">
		<view name="bank-details-grid" type="grid"/>
		<view name="bank-details-form" type="form"/>
		<domain>self.id IN (:bankDetailsSet)</domain>
		<context name="bankDetailsSet" expr="eval: __repo__.of(EbicsPartner).all().filter('self.ebicsBank.id = ?', __this__.id).fetch().collect{ it.getBankDetailsSet().collect { it.getId() } }.flatten()"/>
	</action-view>
	
	<action-view name="action-ebics-bank-view-ebics-users" model="com.axelor.apps.bankpayment.db.EbicsUser" title="Ebics users">
		<view name="ebics-user-grid" type="grid"/>
		<view name="ebics-user-form" type="form"/>
		<domain>self.ebicsPartner.ebicsBank.id = :id</domain>
	</action-view>
	
	
</object-views>
<commit_msg>fixed exception on Bank Details save<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_4.1.xsd">

	<grid name="ebics-bank-grid" title="Ebics bank" model="com.axelor.apps.bankpayment.db.EbicsBank">
		<field name="hostId"/>
		<field name="name"/>
		<field name="url"/>
	</grid>

	<form name="ebics-bank-form" title="Ebics bank" model="com.axelor.apps.bankpayment.db.EbicsBank">
		<panel title="General informations">
			<field name="fullName" colSpan="12" showTitle="false" css="label-bold bold large" hideIf="!fullName" readonly="true"/>
			<field name="bank" canNew="true" onChange="action-ebics-bank-record-onchange-bank"/>
			<field name="hostId"/>
			<field name="fax" placeholder="+33000000000" pattern="^\+?(?:[0-9]{2,3}(?:\s|\.)?){3,6}[0-9]{2,3}$" onChange="action-ebics-bank-record-normalize-fax-phone-number"/>
			<field name="emailAddress" canSelect="false" colSpan="6" form-view="email-address-simple-form" x-show-icons="false">
				<editor x-show-titles="false">
					<field name="address" colSpan="12" placeholder="<EMAIL>" pattern="^[a-z0-9A-ZáàâäãåçéèêëíìîïñóòôöõúùûüýÿæœÁÀÂÄÃÅÇÉÈÊËÍÌÎÏÑÓÒÔÖÕÚÙÛÜÝŸÆŒ!#$%&amp;'*+/=?^_`{|}~-]+(?:\.[a-z0-9A-ZáàâäãåçéèêëíìîïñóòôöõúùûüýÿæœÁÀÂÄÃÅÇÉÈÊËÍÌÎÏÑÓÒÔÖÕÚÙÛÜÝŸÆŒ!#$%&amp;'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[a-z]{2,})$"/>
				</editor>
			</field>
			<field name="protocolSelect" required="true" />
			<field name="url" colSpan="12" pattern="http(s)?://.+" />
			<field name="languageSelect" />
			<field name="certValidityPeriodSelect" />
			<field name="useX509ExtentionForAutoSignedCert"/>
		</panel>

		<panel-related field="ebicsCertificateList" form-view="ebics-certificate-form" grid-view="ebics-certificate-grid"/>
		
		<panel-dashlet hideIf="!bank" action="action-ebics-bank-view-bank-details"/>
		
		<panel-dashlet action="action-ebics-bank-view-ebics-users"/>
	</form>
	
	<action-record name="action-ebics-bank-record-normalize-fax-phone-number" model="com.axelor.apps.bankpayment.db.EbicsBank">
		<field name="fax" expr="call:com.axelor.apps.bankpayment.ebics.web.EbicsBankController:normalizeFaxNumber(fax)"/>
	</action-record>

	<action-record name="action-ebics-bank-record-onchange-bank" model="com.axelor.apps.bankpayment.db.EbicsBank">
		<field name="hostId" expr="eval: bank?.code"/>
	</action-record>

	<action-view name="action-ebics-bank-view-bank-details" model="com.axelor.apps.base.db.BankDetails" title="Bank Details">
		<view name="bank-details-grid" type="grid"/>
		<view name="bank-details-form" type="form"/>
		<domain>self.id IN (:bankDetailsSet)</domain>
		<context name="bankDetailsSet" expr="eval: (!bankDetailsSet || bankDetailsSet.isEmpty()) ? 0 : __repo__.of(EbicsPartner).all().filter('self.ebicsBank.id = ?', __this__.id).fetch().collect{ it.getBankDetailsSet().collect { it.getId() } }.flatten()"/>
	</action-view>
	
	<action-view name="action-ebics-bank-view-ebics-users" model="com.axelor.apps.bankpayment.db.EbicsUser" title="Ebics users">
		<view name="ebics-user-grid" type="grid"/>
		<view name="ebics-user-form" type="form"/>
		<domain>self.ebicsPartner.ebicsBank.id = :id</domain>
	</action-view>
	
	
</object-views>

{'fraction_non_alphanumeric': 0.21796980116609357, 'fraction_numerical': 0.015697413664224846, 'mean_word_length': 5.617210682492582, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 2, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 2, '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': '7147993', 'n_tokens_mistral': 2837, 'n_tokens_neox': 2703, 'n_words': 290}