<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_5.2.xsd">

  <module name="account" package="com.axelor.apps.account.db"/>

  <entity name="Irrecoverable" lang="java">
  
  	<string name="name" title="Name" readonly="true"/>
  	<one-to-many name="irrecoverableCustomerLineList" mappedBy="irrecoverable" ref="com.axelor.apps.account.db.IrrecoverableCustomerLine" title="Customer(s)"/>
  	<many-to-many name="invoiceSet" ref="com.axelor.apps.account.db.Invoice" title="Invoice &amp; Rejects"/>
  	<many-to-many name="paymentScheduleLineSet" ref="com.axelor.apps.account.db.PaymentScheduleLine" title="Payment schedule(s) rejected"/>
  	<many-to-many name="moveSet" ref="com.axelor.apps.account.db.Move" title="Moves generated"/>
  	<integer name="statusSelect" title="Status" selection="iaccount.irrecoverable.status.select" readonly="true" default="1"/>
  	<datetime name="dateTime" title="Date" tz="true" readonly="true"/>
  	<many-to-one name="user" column="user_id" ref="com.axelor.auth.db.User" title="User" readonly="true"/>
  	<many-to-one name="company" ref="com.axelor.apps.base.db.Company" title="Company" required="true"/>
  	<string name="exportTypeSelect" title="Export file type" selection="iadministration.export.type.select"/>
  	
	<unique-constraint columns="name,company"/>
  	
  	<extra-code><![CDATA[
	
	   	// STATUS SELECT
		public static final int STATUS_DRAFT = 1;
		public static final int STATUS_VALIDATED = 2;
	
	]]></extra-code>   

  </entity>

</domain-models>
