<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 model="com.axelor.apps.stock.db.LogisticalForm" title="Logistical forms" name="logistical-form-grid"
        orderBy="-deliveryNumber,-collectionDate">
        <field name="tracking" />
        <field name="deliveryNumber" />
        <field name="company" form-view="company-form" grid-view="company-grid" canEdit="false" />
        <field name="deliverToCustomerPartner" form-view="partner-customer-form" grid-view="partner-customer-grid"
            canEdit="false" />
        <field name="carrierPartner" />
        <field name="collectionDate" />
        <field name="statusSelect" />
    </grid>

    <grid model="com.axelor.apps.stock.db.LogisticalForm" title="Logistical forms" name="logistical-form-stock-move-grid"
        orderBy="-deliveryNumber,-collectionDate">
        <field name="deliveryNumber" />
        <field name="collectionDate" />
        <field name="statusSelect" />
    </grid>

    <form model="com.axelor.apps.stock.db.LogisticalForm" title="Logistical form" name="logistical-form-form"
        width="large" onNew="action-logistical-form-new" onSave="action-logistical-form-save,action-logistical-form-validate-mass-on-save">
        <toolbar>
            <button name="packingListBtn" title="Print packing list" readonlyIf="!logisticalFormLineList.length"
                onClick="action-logistical-form-print-packing-list" icon="fa-print" if="__config__.app.isApp('supplychain')" />
        </toolbar>
        <panel colSpan="12" name="mainPanel">
			<panel name="statusSelectPanel" colSpan="8">
				<field name="deliveryNumber" colSpan="3" showTitle="false" css="label-bold bold large"/>
				<field name="statusSelect" widget="NavSelect" showTitle="false"/>
				<field name="collectionDate" readonlyIf="statusSelect == 3" colSpan="3"/>
				<field name="company" onChange="action-logistical-form-company-change" form-view="company-form"
					grid-view="company-grid" canEdit="false" readonlyIf="statusSelect > 1" colSpan="4"/>
				<field name="deliverToCustomerPartner" domain="self.isCustomer = TRUE AND :company MEMBER OF self.companySet"
					onChange="action-logistical-form-partner-change" form-view="partner-customer-form" grid-view="partner-customer-grid"
					canEdit="false" readonlyIf="statusSelect > 1" colSpan="4"/>
				<field name="stockLocation" onChange="action-logistical-form-stock-location-change" form-view="stock-location-form"
					grid-view="stock-location-grid" canEdit="false" readonlyIf="statusSelect > 1"
					domain="self.company = :company and self.typeSelect != 3 and self.usableOnSaleOrder = true" colSpan="4"/>
            </panel>
            <panel name="actionsPanel" colSpan="4">
				<button name="carrierValidatedBtn" title="Carrier validated" showIf="statusSelect == 1" readonlyIf="!logisticalFormLineList.length"
					onClick="action-logistical-form-carrier-validated" icon="fa-check" css="btn btn-success" colSpan="12"/>
                <button name="collectedBtn" title="Collected" showIf="statusSelect == 2" readonlyIf="!logisticalFormLineList.length"
					onClick="action-logistical-form-process-collected" icon="fa-truck" css="btn btn-success" colSpan="12"/>
                <button name="backToProvisionBtn" title="Back to provision" showIf="statusSelect > 1" icon="fa-cubes" onClick="action-logistical-form-back-to-provision" colSpan="12"/>
            </panel>
        </panel>
        <panel-tabs colSpan="12" name="mainPanelTab">
            <panel name="generalInfoPanel" title="General">
                <field name="carrierPartner"
                    domain="self.isCarrier = TRUE AND (self.companySet IS EMPTY OR :company MEMBER OF self.companySet)"
                    form-view="partner-form" grid-view="partner-grid" canEdit="false"
                    onChange="action-logistical-form-set-customer-account-number" readonlyIf="statusSelect > 1"/>
                <field name="accountSelectionToCarrierSelect" onChange="action-logistical-form-set-customer-account-number" readonlyIf="statusSelect > 1"/>
                <field name="customerAccountNumberToCarrier" readonlyIf="statusSelect > 1"/>
                <field name="forwarderPartner" 
                    domain="(self.isCarrier = TRUE OR self.isSupplier = TRUE) AND (self.companySet IS EMPTY OR :company MEMBER OF self.companySet)"
                	form-view="partner-form" grid-view="partner-grid" canEdit="false" readonlyIf="statusSelect > 1"/>
                <field name="incoterm" form-view="incoterm-form" grid-view="incoterm-grid" canEdit="false" readonlyIf="statusSelect > 1"/>
                <field name="tracking" readonlyIf="statusSelect == 3"/>
                <field name="totalGrossMass" colSpan="3" />
                <field name="totalNetMass" colSpan="3" />
                <field name="totalVolume" colSpan="6" />
                <field name="internalDeliveryComment" readonlyIf="statusSelect == 3"/>
                <field name="externalDeliveryComment" readonlyIf="statusSelect > 1"/>
            </panel>
            <panel name="LinesPanel" title="Lines" showIf="deliverToCustomerPartner" readonlyIf="statusSelect == 3">
                <panel name="stockMovePanel" colSpan="12" hideIf="$readonly()">
                    <field name="$stockMove" title="Stock move" type="reference" widget="many-to-one"
                        target="com.axelor.apps.stock.db.StockMove" grid-view="stock-move-out-grid" form-view="stock-move-form"
                        colSpan="4" onSelect="action-logistical-form-stock-move-domain" canEdit="false" />
                    <button name="addStockMoveBtn" title="Add" onClick="action-logistical-form-add-stock-move"
                        colSpan="2" readonlyIf="!$stockMove" />
                </panel>
                <panel-related name="logisticalFormLineList" field="logisticalFormLineList" grid-view="logistical-form-line-grid"
                    form-view="logistical-form-line-form" colSpan="12" canMove="true" orderBy="sequence" editable="true"
                    height="17" />
            </panel>
        </panel-tabs>
        
        <panel-mail name="mailPanel">
	    	<mail-messages limit="4"/>
	    	<mail-followers/>
	  	</panel-mail>
    </form>

    <action-record name="action-logistical-form-new" model="com.axelor.apps.stock.db.LogisticalForm">
        <field name="company" expr="eval: __user__.activeCompany" />
        <field name="collectionDate" expr="eval: __config__.app.getTodayDate()" />
    </action-record><commit_msg>RM#15998 LOGISTICAL FORM : new organization<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 model="com.axelor.apps.stock.db.LogisticalForm" title="Logistical forms" name="logistical-form-grid"
        orderBy="-deliveryNumber,-collectionDate">
        <field name="tracking" />
        <field name="deliveryNumber" />
        <field name="company" form-view="company-form" grid-view="company-grid" canEdit="false" />
        <field name="deliverToCustomerPartner" form-view="partner-customer-form" grid-view="partner-customer-grid"
            canEdit="false" />
        <field name="carrierPartner" />
        <field name="collectionDate" />
        <field name="statusSelect" />
    </grid>

    <grid model="com.axelor.apps.stock.db.LogisticalForm" title="Logistical forms" name="logistical-form-stock-move-grid"
        orderBy="-deliveryNumber,-collectionDate">
        <field name="deliveryNumber" />
        <field name="collectionDate" />
        <field name="statusSelect" />
    </grid>

    <form model="com.axelor.apps.stock.db.LogisticalForm" title="Logistical form" name="logistical-form-form"
        width="large" onNew="action-logistical-form-new" onSave="action-logistical-form-save,action-logistical-form-validate-mass-on-save">
        <toolbar>
            <button name="packingListBtn" title="Print packing list" readonlyIf="!logisticalFormLineList.length"
                onClick="action-logistical-form-print-packing-list" icon="fa-print" if="__config__.app.isApp('supplychain')" />
        </toolbar>
        <panel colSpan="12" name="mainPanel">
			<panel name="statusSelectPanel" colSpan="4" itemSpan="12">
				<field name="deliveryNumber" showTitle="false" css="label-bold bold large"/>
				<field name="statusSelect" widget="NavSelect" showTitle="false"/>
			</panel>
			<panel name="detailsPanel" colSpan="4">
				<field name="company" onChange="action-logistical-form-company-change" form-view="company-form"
					grid-view="company-grid" canEdit="false" readonlyIf="statusSelect > 1"/>
				<field name="collectionDate" readonlyIf="statusSelect == 3"/>
				<field name="deliverToCustomerPartner" domain="self.isCustomer = TRUE AND :company MEMBER OF self.companySet"
					onChange="action-logistical-form-partner-change" form-view="partner-customer-form" grid-view="partner-customer-grid"
					canEdit="false" readonlyIf="statusSelect > 1"/>
				<field name="stockLocation" onChange="action-logistical-form-stock-location-change" form-view="stock-location-form"
					grid-view="stock-location-grid" canEdit="false" readonlyIf="statusSelect > 1"
					domain="self.company = :company and self.typeSelect != 3 and self.usableOnSaleOrder = true"/>
			</panel>
			<panel name="actionsPanel" colSpan="4">
				<button name="carrierValidatedBtn" title="Carrier validated" showIf="statusSelect == 1" readonlyIf="!logisticalFormLineList.length"
					onClick="action-logistical-form-carrier-validated" icon="fa-check" css="btn btn-success" colSpan="12"/>
				<button name="collectedBtn" title="Collected" showIf="statusSelect == 2" readonlyIf="!logisticalFormLineList.length"
					onClick="action-logistical-form-process-collected" icon="fa-truck" css="btn btn-success" colSpan="12"/>
				<button name="backToProvisionBtn" title="Back to provision" showIf="statusSelect > 1" icon="fa-cubes" onClick="action-logistical-form-back-to-provision" colSpan="12"/>
			</panel>
        </panel>
        <panel-tabs colSpan="12" name="mainPanelTab">
            <panel name="generalInfoPanel" title="General">
                <field name="carrierPartner"
                    domain="self.isCarrier = TRUE AND (self.companySet IS EMPTY OR :company MEMBER OF self.companySet)"
                    form-view="partner-form" grid-view="partner-grid" canEdit="false"
                    onChange="action-logistical-form-set-customer-account-number" readonlyIf="statusSelect > 1" colSpan="4"/>
                <field name="accountSelectionToCarrierSelect" onChange="action-logistical-form-set-customer-account-number" readonlyIf="statusSelect > 1" colSpan="4"/>
                <field name="customerAccountNumberToCarrier" readonlyIf="statusSelect > 1" colSpan="4"/>
                <field name="forwarderPartner" 
                    domain="(self.isCarrier = TRUE OR self.isSupplier = TRUE) AND (self.companySet IS EMPTY OR :company MEMBER OF self.companySet)"
                    form-view="partner-form" grid-view="partner-grid" canEdit="false" readonlyIf="statusSelect > 1" colSpan="4"/>
                <field name="incoterm" form-view="incoterm-form" grid-view="incoterm-grid" canEdit="false" readonlyIf="statusSelect > 1" colSpan="4"/>
                <field name="tracking" readonlyIf="statusSelect == 3" colSpan="4"/>
                <field name="totalGrossMass" colSpan="4" />
                <field name="totalNetMass" colSpan="4" />
                <field name="totalVolume" colSpan="4" />
                <field name="internalDeliveryComment" readonlyIf="statusSelect == 3" colSpan="4"/>
                <field name="externalDeliveryComment" readonlyIf="statusSelect > 1" colSpan="4"/>
            </panel>
            <panel name="LinesPanel" title="Lines" showIf="deliverToCustomerPartner" readonlyIf="statusSelect == 3">
                <panel name="stockMovePanel" colSpan="12" hideIf="$readonly()">
                    <field name="$stockMove" title="Stock move" type="reference" widget="many-to-one"
                        target="com.axelor.apps.stock.db.StockMove" grid-view="stock-move-out-grid" form-view="stock-move-form"
                        colSpan="4" onSelect="action-logistical-form-stock-move-domain" canEdit="false" />
                    <button name="addStockMoveBtn" title="Add" onClick="action-logistical-form-add-stock-move"
                        colSpan="2" readonlyIf="!$stockMove" />
                </panel>
                <panel-related name="logisticalFormLineList" field="logisticalFormLineList" grid-view="logistical-form-line-grid"
                    form-view="logistical-form-line-form" colSpan="12" canMove="true" orderBy="sequence" editable="true"
                    height="17" />
            </panel>
        </panel-tabs>
        
        <panel-mail name="mailPanel">
	    	<mail-messages limit="4"/>
	    	<mail-followers/>
	  	</panel-mail>
    </form>

    <action-record name="action-logistical-form-new" model="com.axelor.apps.stock.db.LogisticalForm">
        <field name="company" expr="eval: __user__.activeCompany" />
        <field name="collectionDate" expr="eval: __config__.app.getTodayDate()" />
    </action-record>
{'fraction_non_alphanumeric': 0.15253243421534854, 'fraction_numerical': 0.009015612401964378, 'mean_word_length': 3.3688760806916425, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 2, '>': 157, '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': '2492593', 'n_tokens_mistral': 4300, 'n_tokens_neox': 3940, 'n_words': 641}