<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_3.0.xsd">

	<grid name="expense-edit-grid" title="Expenses" editable="true" model="com.axelor.apps.organisation.db.Expense">
		<field name="date" />
		<field name="company"/>
		<field name="expenseLineList" grid-view="expense-line-edit-grid" />
		<field name="statusSelect"/>
	</grid>

    <grid name="expense-grid" title="Expenses" model="com.axelor.apps.organisation.db.Expense">
        <field name="user"/>
        <field name="date"/>
        <field name="company"/>
        <field name="totalAmount" title="Total (TTC)"/>
        <field name="currency"/>
        <field name="paymentPeriod"/>
        <field name="statusSelect"/>
    </grid>
    
	<grid edit-icon="true" name="my-expense-grid" title="My Expenses" model="com.axelor.apps.organisation.db.Expense">
	  <field name="date"/>
	  <field name="company"/>
	  <field name="totalAmount" title="Total (TTC)"/>
	  <field name="currency"/>
	  <field name="paymentPeriod"/>
	  <field name="statusSelect"/>
	</grid>
	    
	<form name="expense-form" title="Expense" model="com.axelor.apps.organisation.db.Expense" onSave="action-expense-method-check-validation-status" onNew="action-expense-group-default">
	  <toolbar>
	    <button name="printExpense" title="Print" colSpan="2" icon="fa-print" onClick="action-print-expenses"/>
	  </toolbar>
	  <panel>
	    <field name="user" required="true" readonlyIf="statusSelect &gt; 1"/>
		<field name="company" widget="SuggestBox" required="true" form-view="company-form" readonlyIf="statusSelect &gt; 1"/>
	    <field name="statusSelect" showTitle="false" colSpan="12" widget="NavSelect"/>
	    <field name="date" colSpan="3" readonlyIf="statusSelect &gt; 1" onChange="action-expense-on-change-date"/>
	    <field name="paymentPeriod" domain="self.company = :company" colSpan="3"/>
		<field name="project"/>
	    <field name="totalAmount" title="Total (TTC)" colSpan="3" css="bold" readonlyIf="statusSelect &gt; 1"/>
	    <field name="currency" required="true" colSpan="3" readonlyIf="statusSelect &gt; 1"/>
	    <button name="compute" title="Compute" colSpan="3" onClick="action-expense-compute-expense-line"/>
	    <panel-related field="expenseLineList" readonlyIf="statusSelect &gt; 1" colSpan="12"/>    
	    
	    <field name="refusalReason" showIf="statusSelect == 6"/>
	  </panel>
	  <panel sidebar="true" title="Actions">
	    <panel colSpan="12">
	      <button name="submit" title="Submit" showIf="statusSelect == 1" colSpan="12" onClick="action-group-organisation-expense-submit-click"/>
	      <button name="validateManager" title="Validate" showIf="statusSelect == 2" colSpan="12" onClick="action-group-organisation-expense-validatemanager-click"/>
	      <button name="refuse" title="Refuse" showIf="statusSelect == 2" colSpan="12" onClick="save,action-expense-record-refuse"/>
	      <button name="confirm" title="Confirm" showIf="statusSelect == 3" colSpan="12" onClick="action-group-organisation-expense-confirm-click"/>
	      <button name="draft" title="Draft" showIf="statusSelect == 6" colSpan="12" onClick="action-group-organisation-expense-draft-click"/>
	    </panel>
	    <panel readonly="true" colSpan="12">
	      <field name="validatedByUser"  colSpan="12"/>
	      <field name="validationDate"  colSpan="12"/>
	      <field name="validationStatusSelect" hideIf="statusSelect == 1 || statusSelect == 6"  colSpan="12"/>
	    </panel>
	  </panel>
	</form>
    
    <action-group name="action-expense-group-default">
    	<action name="action-expense-record-default"/>
    	<action name="action-expense-record-default-currency"/>
    </action-group>
    
    <action-group name="action-group-organisation-expense-draft-click">
    	<action name="save"/>
    	<action name="action-expense-record-draft"/>
    	<action name="save"/>
    </action-group>
    
    <action-group name="action-group-organisation-expense-submit-click">
    	<action name="action-expense-compute-expense-line"/>
    	<action name="action-expense-method-check-validation-status"/>
    	<action name="save"/>
    	<action name="action-expense-record-submit"/>
    	<action name="save"/>
    </action-group>
    
    <action-group name="action-group-organisation-expense-validatemanager-click">
    	<action name="save"/>
    	<action name="action-expense-method-check-validation-status"/>
    	<action name="action-expense-record-validate-manager"/>
    	<action name="action-expense-alert-validate"/>
    	<action name="action-expense-record-validation-info"/>
    	<action name="save"/>
    </action-group>
    
    <action-group name="action-group-organisation-expense-validatecommercial-click">
    	<action name="save"/>
    	<action name="action-expense-record-validate-commercial"/>
    	<action name="action-expense-record-validation-info"/>
    	<action name="save"/>
    </action-group>
    
    <action-group name="action-group-organisation-expense-confirm-click">
    	<action name="save"/>
    	<action name="action-expense-record-confirm"/>
    	<action name="save"/>
    </action-group>
    
	<action-record name="action-expense-record-default" model="com.axelor.apps.organisation.db.Expense">
    	<field name="user" expr="eval:__user__"/><commit_msg>Fixed issue with expense<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_3.0.xsd">

	<grid name="expense-edit-grid" title="Expenses" editable="true" model="com.axelor.apps.organisation.db.Expense">
		<field name="date" />
		<field name="company"/>
		<field name="expenseLineList" grid-view="expense-line-edit-grid" />
		<field name="statusSelect"/>
	</grid>

    <grid name="expense-grid" title="Expenses" model="com.axelor.apps.organisation.db.Expense">
        <field name="user"/>
        <field name="date"/>
        <field name="company"/>
        <field name="totalAmount" title="Total (TTC)"/>
        <field name="currency"/>
        <field name="paymentPeriod"/>
        <field name="statusSelect"/>
    </grid>
    
	<grid edit-icon="true" name="my-expense-grid" title="My Expenses" model="com.axelor.apps.organisation.db.Expense">
	  <field name="date"/>
	  <field name="company"/>
	  <field name="totalAmount" title="Total (TTC)"/>
	  <field name="currency"/>
	  <field name="paymentPeriod"/>
	  <field name="statusSelect"/>
	</grid>
	    
	<form name="expense-form" title="Expense" model="com.axelor.apps.organisation.db.Expense" onSave="action-expense-method-check-validation-status" onNew="action-expense-group-default">
	  <toolbar>
	    <button name="printExpense" title="Print" colSpan="2" icon="fa-print" onClick="action-print-expenses"/>
	  </toolbar>
	  <panel>
	    <field name="user" required="true" readonlyIf="statusSelect &gt; 1"/>
		<field name="company" widget="SuggestBox" required="true" form-view="company-form" readonlyIf="statusSelect &gt; 1"/>
	    <field name="statusSelect" showTitle="false" colSpan="12" widget="NavSelect"/>
	    <field name="date" colSpan="3" readonlyIf="statusSelect &gt; 1" onChange="action-expense-on-change-date"/>
	    <field name="paymentPeriod" domain="self.company = :company" colSpan="3"/>
		<field name="project"/>
	    <field name="totalAmount" title="Total (TTC)" colSpan="3" css="bold" readonlyIf="statusSelect &gt; 1"/>
	    <field name="currency" required="true" colSpan="3" readonlyIf="statusSelect &gt; 1"/>
	    <button name="compute" title="Compute" colSpan="3" onClick="action-expense-compute-expense-line"/>
	    <panel-related field="expenseLineList" readonlyIf="statusSelect &gt; 1" colSpan="12"/>    
	    
	    <field name="refusalReason" showIf="statusSelect == 6"/>
	  </panel>
	  <panel sidebar="true" title="Actions">
	    <panel colSpan="12">
	      <button name="submit" title="Submit" showIf="statusSelect == 1" colSpan="12" onClick="action-group-organisation-expense-submit-click"/>
	      <button name="validateManager" title="Validate" showIf="statusSelect == 2" colSpan="12" onClick="action-group-organisation-expense-validatemanager-click"/>
	      <button name="refuse" title="Refuse" showIf="statusSelect == 2" colSpan="12" onClick="save,action-expense-record-refuse"/>
	      <button name="confirm" title="Confirm" showIf="statusSelect == 3" colSpan="12" onClick="action-group-organisation-expense-confirm-click"/>
	      <button name="draft" title="Draft" showIf="statusSelect == 6" colSpan="12" onClick="action-group-organisation-expense-draft-click"/>
	    </panel>
	    <panel readonly="true" colSpan="12">
	      <field name="validatedByUser"  colSpan="12"/>
	      <field name="validationDate"  colSpan="12"/>
	      <field name="validationStatusSelect" hideIf="statusSelect == 1 || statusSelect == 6"  colSpan="12"/>
	    </panel>
	  </panel>
	</form>
    
    <action-group name="action-expense-group-default">
    	<action name="action-expense-record-default"/>
    	<action name="action-expense-record-default-currency"/>
    </action-group>
    
    <action-group name="action-group-organisation-expense-draft-click">
    	<action name="save"/>
    	<action name="action-expense-record-draft"/>
    	<action name="save"/>
    </action-group>
    
    <action-group name="action-group-organisation-expense-submit-click">
    	<action name="action-expense-compute-expense-line"/>
    	<action name="action-expense-method-check-validation-status"/>
    	<action name="save"/>
    	<action name="action-expense-record-submit"/>
    	<action name="save"/>
    </action-group>
    
    <action-group name="action-group-organisation-expense-validatemanager-click">
    	<action name="save"/>
    	<action name="action-expense-method-check-validation-status"/>
    	<action name="action-expense-record-validate-manager"/>
    	<action name="action-expense-alert-validate"/>
    	<action name="action-expense-record-validation-info"/>
    	<action name="save"/>
    </action-group>
    
    <action-group name="action-group-organisation-expense-confirm-click">
    	<action name="save"/>
    	<action name="action-expense-record-confirm"/>
    	<action name="save"/>
    </action-group>
    
	<action-record name="action-expense-record-default" model="com.axelor.apps.organisation.db.Expense">
    	<field name="user" expr="eval:__user__"/>
{'fraction_non_alphanumeric': 0.18162172319834632, 'fraction_numerical': 0.010147514798459082, 'mean_word_length': 4.222767419038273, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 2, '>': 185, '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': '7056041', 'n_tokens_mistral': 3526, 'n_tokens_neox': 3357, 'n_words': 543}