initial commit

This commit is contained in:
devapp
2021-11-29 11:56:30 +01:00
parent 016e45a01c
commit 5b67068faa
4285 changed files with 927085 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
<?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="AccountConfig" lang="java" cacheable="true">
<many-to-one name="expenseJournal" ref="com.axelor.apps.account.db.Journal" title="Expense Journal"/>
<many-to-one name="expenseTaxAccount" ref="com.axelor.apps.account.db.Account" title="Expense tax account"/>
<track>
<field name="expenseJournal" on="UPDATE"/>
<field name="expenseTaxAccount" on="UPDATE"/>
</track>
</entity>
</domain-models>

View File

@@ -0,0 +1,20 @@
<?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="AnalyticMoveLine" lang="java">
<many-to-one name="expenseLine" ref="com.axelor.apps.hr.db.ExpenseLine"/>
<extra-code><![CDATA[
// STATUS SELECT
public static final int STATUS_FORECAST_EXPENSE = 4;
]]></extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,31 @@
<?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="base" package="com.axelor.apps.base.db"/>
<entity name="AppEmployee" lang="java" extends="App">
<decimal name="dailyWorkHours" title="Daily work hours"/>
<boolean name="advanceManagement" default="true" />
<boolean name="payrollPreparation" title="Payroll preparation"/>
<boolean name="lunchVoucher" title="Lunch Voucher"/>
<boolean name="employeeBonus" title="Employee bonus"/>
<extra-code>
<![CDATA[
public static final Integer INVOICING_LOG_TIMES_LINE_ACTIVITY = 1;
public static final Integer INVOICING_LOG_TIMES_EMPLOYEE_ACTIVITY = 2;
]]>
</extra-code>
<track>
<field name="dailyWorkHours" on="UPDATE"/>
<field name="advanceManagement" on="UPDATE"/>
<field name="payrollPreparation" on="UPDATE"/>
<field name="lunchVoucher" on="UPDATE"/>
<field name="employeeBonus" on="UPDATE"/>
</track>
</entity>
</domain-models>

View File

@@ -0,0 +1,17 @@
<?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="base" package="com.axelor.apps.base.db" />
<entity name="AppExpense" lang="java" extends="App">
<boolean name="computeDistanceWithWebService" />
<track>
<field name="computeDistanceWithWebService" on="UPDATE"/>
</track>
</entity>
</domain-models>

View File

@@ -0,0 +1,9 @@
<?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="base" package="com.axelor.apps.base.db"/>
<entity name="AppExtraHours" lang="java" cacheable="true" extends="App" />
</domain-models>

View File

@@ -0,0 +1,18 @@
<?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="base" package="com.axelor.apps.base.db"/>
<entity name="AppLeave" lang="java" extends="App">
<boolean name="allowNegativeLeaveEmployees" title="Allow negative values for employee leaves"/>
<boolean name="overtimeManagement" title="Overtime management" />
<track>
<field name="allowNegativeLeaveEmployees" on="UPDATE"/>
<field name="overtimeManagement" on="UPDATE"/>
</track>
</entity>
</domain-models>

View File

@@ -0,0 +1,42 @@
<?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="base" package="com.axelor.apps.base.db"/>
<entity name="AppTimesheet" lang="java" extends="App">
<integer name="invoicingTypeLogTimesSelect" title="Invoicing Type for Log Times" selection="hrs.timesheet.line.invoicing.type.select" default="1"/>
<boolean name="consolidateTSLine" title="Consolidate timesheet line on invoice"/>
<integer name="defaultEndFormat" title="Timesheet default end date format" selection="hr.timesheet.default.end.format" />
<!-- Timesheet Timer configuration -->
<boolean name="enableTimer" title="Start&amp;Stop" default="true"/>
<boolean name="editModeTSTimer" title="Edit Start&amp;Stop Timer On Stop" default="true"/>
<boolean name="keepProject" title="Keep Project for Start&amp;Stop Timer" default="true"/>
<boolean name="createLinesForLeaves" title="Create lines for day leaves"/>
<boolean name="createLinesForHolidays" title="Create lines for public holidays"/>
<boolean name="timesheetEditor" title="Timesheet editor"/>
<boolean name="displayTimesheetLineNumber" title="Display timesheet line number"/>
<many-to-one name="timesheetReminderTemplate" ref="com.axelor.apps.message.db.Template" title="Timesheet reminder template"/>
<track>
<field name="invoicingTypeLogTimesSelect" on="UPDATE"/>
<field name="consolidateTSLine" on="UPDATE"/>
<field name="defaultEndFormat" on="UPDATE"/>
<field name="enableTimer" on="UPDATE"/>
<field name="editModeTSTimer" on="UPDATE"/>
<field name="keepProject" on="UPDATE"/>
<field name="createLinesForLeaves" on="UPDATE"/>
<field name="createLinesForHolidays" on="UPDATE"/>
<field name="timesheetEditor" on="UPDATE"/>
</track>
</entity>
</domain-models>

View File

@@ -0,0 +1,14 @@
<?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="base" package="com.axelor.apps.base.db"/>
<entity name="Batch" lang="java" sequential="true">
<many-to-one name="hrBatch" ref="com.axelor.apps.hr.db.HrBatch" />
</entity>
</domain-models>

View File

@@ -0,0 +1,13 @@
<?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="base" package="com.axelor.apps.base.db"/>
<entity name="Company" lang="java" cacheable="true">
<one-to-one name="hrConfig" ref="com.axelor.apps.hr.db.HRConfig" title="HR config" mappedBy="company"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,39 @@
<?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="human-resource" package="com.axelor.apps.hr.db"/>
<!-- Déclaration Préalable À l'Embauche -->
<entity name="DPAE">
<many-to-one name="employee" title="Employee" ref="com.axelor.apps.hr.db.Employee"/> <!-- mapping -->
<!-- 1) Employer institution -->
<string name="registrationCode" title="Registration code"/>
<string name="mainActivityCode" title="Main activity code" min="5" max="5"/>
<many-to-one name="company" title="Company" ref="com.axelor.apps.base.db.Company"/>
<many-to-one name="companyAddress" title="Company address" ref="com.axelor.apps.base.db.Address"/>
<string name="companyFixedPhone" title="Company fixed phone"/>
<string name="healthService" title="Health service"/>
<many-to-one name="healthServiceAddress" title="Health service address" ref="com.axelor.apps.base.db.Address"/>
<!-- 2) Employee -->
<string name="lastName" title="Last name"/>
<string name="firstName" title="First name"/>
<string name="socialSecurityNumber" title="Social security number" min="12" max="15"/>
<string name="sexSelect" title="Sex" selection="employee.hr.sex.select"/>
<date name="dateOfBirth" title="Date of birth"/>
<many-to-one name="departmentOfBirth" title="Department of birth" ref="com.axelor.apps.base.db.Department"/>
<many-to-one name="cityOfBirth" title="City of birth" ref="com.axelor.apps.base.db.City"/>
<many-to-one name="countryOfBirth" title="Country of birth" ref="com.axelor.apps.base.db.Country"/>
<!-- 3) Contract -->
<date name="dateOfHire" title="Date of hire"/>
<time name="timeOfHire" title="Time of hire"/>
<string name="trialPeriodDuration" title="Trial period duration"/>
<many-to-one name="contractType" title="Contract type" ref="com.axelor.apps.hr.db.EmploymentContractType"/>
<date name="endDateOfContract" title="End date of hire"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,87 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="Employee" cacheable="true">
<one-to-one name="user" column="user_id" ref="com.axelor.auth.db.User" mappedBy="employee"/>
<one-to-one name="contactPartner" ref="com.axelor.apps.base.db.Partner" required="true" title="Contact"/>
<decimal name="hourlyRate" title="Hourly rate" scale="2" precision="20" />
<string name="timeLoggingPreferenceSelect" title="Time logging preference" selection="hr.time.logging.preference.select" massUpdate="true"/>
<decimal name="weeklyWorkHours" title="Weekly work hours" scale="2" precision="20" />
<decimal name="dailyWorkHours" title="Daily work hours" scale="2" precision="20" />
<many-to-one name="managerUser" ref="com.axelor.auth.db.User" title="Manager" massUpdate="true"/>
<boolean name="timesheetReminder" title="Timesheet reminder" />
<boolean name="external" title="External" />
<many-to-one name="weeklyPlanning" ref="com.axelor.apps.base.db.WeeklyPlanning" massUpdate="true"/>
<one-to-many name="leaveLineList" title="Leave List" ref="com.axelor.apps.hr.db.LeaveLine" mappedBy="employee"/>
<boolean name="negativeValueLeave" title="Allow negative value for leaves"/>
<many-to-one name="product" ref="com.axelor.apps.base.db.Product" title="Default Activity Product"/>
<many-to-one name="publicHolidayEventsPlanning" ref="com.axelor.apps.base.db.EventsPlanning" title="Public Holiday Planning" massUpdate="true"/>
<one-to-many name="employmentContractList" ref="com.axelor.apps.hr.db.EmploymentContract" title="Employment contracts" mappedBy="employee"/>
<boolean name="hrManager" title="HR manager" />
<many-to-many name="batchSet" ref="com.axelor.apps.base.db.Batch" title="Batches"/>
<date name="birthDate" title="Birth date" />
<string name="maritalStatus" title="Marital status" selection="hr.employee.marital.status"/>
<many-to-one name="cityOfBirth" title="City of birth" ref="com.axelor.apps.base.db.City"/>
<many-to-one name="citizenship" title="Citizenship" ref="com.axelor.apps.base.db.Citizenship"/>
<many-to-one name="departmentOfBirth" title="Department of birth" ref="com.axelor.apps.base.db.Department" help="For foreign-born employees, please enter the code 99"/>
<many-to-one name="countryOfBirth" title="Country of birth" ref="com.axelor.apps.base.db.Country"/>
<string name="sexSelect" title="Sex" selection="employee.hr.sex.select"/>
<string name="fixedProPhone" title="Work fixed phone"/>
<string name="mobileProPhone" title="Work mobile phone"/>
<string name="phoneAtCustomer" title="Phone at the customer"/>
<string name="emergencyContact" title="Emergency contact"/>
<string name="emergencyNumber" title="Phone"/>
<string name="emergencyContactRelationship" title="Emergency contact relationship"/>
<date name="dateOfHire" title="Date of hire" />
<date name="seniorityDate" title="Seniority date" />
<many-to-one name="mainEmploymentContract" ref="com.axelor.apps.hr.db.EmploymentContract" title="Main employment contract" />
<boolean name="profitSharingBeneficiary" title="Profit-sharing beneficiary" default="false" massUpdate="true"/>
<many-to-one name="imposedDayEventsPlanning" ref="com.axelor.apps.base.db.EventsPlanning" title="Imposed day Planning" massUpdate="true"/>
<string name="socialSecurityNumber" title="Social security number" encrypted="true"/>
<one-to-many name="employeeAdvanceList" ref="com.axelor.apps.hr.db.EmployeeAdvance" title="Employee advances" readonly="true" mappedBy="employee" />
<integer name="lunchVoucherFormatSelect" title="Lunch Voucher Format" selection="hr.lunch.voucher.mgt.line.lunch.voucher.format.select" massUpdate="true"/>
<one-to-many name="lunchVoucherAdvanceList" ref="com.axelor.apps.hr.db.LunchVoucherAdvance" title="Lunch voucher advances" mappedBy="employee" orphanRemoval="true"/>
<one-to-many name="kilometricLogList" ref="com.axelor.apps.hr.db.KilometricLog" mappedBy="employee"/>
<decimal name="bonusCoef" title="Coefficient for bonus" />
<string name="exportCode" title="Export code"/>
<one-to-many name="employeeVehicleList" ref="com.axelor.apps.hr.db.EmployeeVehicle" mappedBy="employee"/>
<integer name="companyCbSelect" title="Expense paid with company's credit card" selection="hr.expense.company.cb.payment" default="1"/>
<string name="companyCbDetails" title="Company credit card details"/>
<string name="name" title="Name" search="contactPartner">
<![CDATA[
if(contactPartner != null && contactPartner.getFullName() != null) { return contactPartner.getFullName(); }
return "";
]]>
</string>
<!-- New employee wizard -->
<integer name="stepByStepSelect" title="Step by step" selection="hr.employee.form.step.by.step.select" default="1"/>
<!-- END OF New employee wizard -->
<!-- DPAE -->
<one-to-many name="dpaeList" title="DPAEs" ref="com.axelor.apps.hr.db.DPAE" mappedBy="employee"/>
<one-to-many name="employeeFileList" title="Files" ref="com.axelor.apps.hr.db.EmployeeFile" mappedBy="employee" />
<string name="maidenName" title="Maiden name"/>
<string name="maritalName" title="Marital name"/>
<extra-code>
<![CDATA[
public static final String TIME_PREFERENCE_DAYS = "days";
public static final String TIME_PREFERENCE_HOURS = "hours";
public static final String TIME_PREFERENCE_MINUTES = "minutes";
public static final String SEX_F = "F";
public static final String SEX_M = "M";
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,37 @@
<?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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="EmployeeAdvance" lang="java" cacheable="true">
<date name="date" column="date_val" title="Date" />
<integer name="typeSelect" title="Type" selection="hr.employee.advance.type.select" />
<decimal name="requestedAmount" title="Requested amount" />
<decimal name="remainingAmount" title="Remaining amount" />
<many-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" title="Employee" />
<many-to-one name="paymentMode" ref="com.axelor.apps.account.db.PaymentMode" title="Payment mode" />
<string name="reason" title="Reason" />
<integer name="statusSelect" title="Status" selection="hr.employee.advance.status.select" readonly="true" default="1" />
<one-to-many name="employeeAdvanceUsageList" ref="com.axelor.apps.hr.db.EmployeeAdvanceUsage" title="Employee advance usage" mappedBy="employeeAdvance"/>
<extra-code><![CDATA[
// STATUS SELECT
public static final int STATUS_REQUESTED = 1;
public static final int STATUS_VALIDATED = 2;
//TYPE SELECT
public static final int TYPE_PERMANENT = 1;
public static final int TYPE_OCCASIONAL = 2;
]]></extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,16 @@
<?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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="EmployeeAdvanceUsage" lang="java" cacheable="true">
<decimal name="usedAmount" title="Used amount" />
<many-to-one name="expense" ref="com.axelor.apps.hr.db.Expense" title="Expense" />
<many-to-one name="employeeAdvance" ref="com.axelor.apps.hr.db.EmployeeAdvance" title="Advance" />
</entity>
</domain-models>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="EmployeeBonusMgt" lang="java" >
<many-to-one name="company" ref="com.axelor.apps.base.db.Company" title="Company"/>
<many-to-one name="payPeriod" ref="com.axelor.apps.base.db.Period" title="Pay period" />
<many-to-one name="leavePeriod" ref="com.axelor.apps.base.db.Period" title="Leave period" />
<many-to-one name="employeeBonusType" ref="com.axelor.apps.hr.db.EmployeeBonusType" title="Bonus type" />
<integer name="statusSelect" title="Status" selection="hr.employee.bonus.mgt.status.select" readonly="true" default="1" />
<decimal name="baseAmount" title="Base amount per employee" />
<one-to-many name="employeeBonusMgtLineList" ref="com.axelor.apps.hr.db.EmployeeBonusMgtLine" title="Employee bonus" mappedBy="employeeBonusMgt" />
<extra-code>
<![CDATA[
public static final Integer STATUS_DRAFT = 1;
public static final Integer STATUS_ANOMALY = 2;
public static final Integer STATUS_CALCULATED = 3;
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="EmployeeBonusMgtLine" lang="java" >
<many-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" title="Employee"/>
<decimal name="amount" title="Amount" />
<decimal name="coef" title="Bonus coefficient" />
<many-to-one name="weeklyPlanning" ref="com.axelor.apps.base.db.WeeklyPlanning" title="Presence" />
<date name="seniorityDate" title="Seniority date" />
<many-to-one name="employeeBonusMgt" ref="com.axelor.apps.hr.db.EmployeeBonusMgt" title="Employee bonus mgt" />
<many-to-one name="payrollPreparation" ref="com.axelor.apps.hr.db.PayrollPreparation" title="Payroll preparation" />
<integer name="statusSelect" title="Status" selection="hr.employee.bonus.mgt.line.status.select" readonly="true"/>
<extra-code>
<![CDATA[
public static final Integer STATUS_CALCULATED = 1;
public static final Integer STATUS_ANOMALY = 2;
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="EmployeeBonusType" lang="java" >
<string name="code" title="Code" />
<string name="label" title="Label" namecolumn="true" />
<string name="applicationCondition" title="Application condition" />
<string name="formula" title="Formula" />
<boolean name="payrollPreparationExport" title="Export for payroll preparation" />
<string name="exportCode" title="Export code" />
</entity>
</domain-models>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db" />
<entity name="EmployeeFile" cacheable="true">
<many-to-one name="fileType" title="File type" ref="com.axelor.apps.base.db.FileType" />
<many-to-one name="metaFile" title="File" ref="com.axelor.meta.db.MetaFile"/>
<many-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" />
<date name="expirationDate" title="Expiration date" />
</entity>
</domain-models>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="EmployeeVehicle">
<many-to-one name="employee" title="Employee" ref="com.axelor.apps.hr.db.Employee"/>
<string name="vehicleMake" title="Vehicle Make"/>
<string name="vehicleModel" title="Vehicle Model"/>
<string name="plateNo" namecolumn="true" title="Plate Number" encrypted="true"/>
<many-to-one name="kilometricAllowParam" ref="com.axelor.apps.hr.db.KilometricAllowParam" title="Kilometric Allowance Param" />
<date name="startDate" title="Start Date"/>
<date name="endDate" title="End Date"/>
<binary name="vehicleRegistrationCertificate" title="Registration certificate" encrypted="true"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="EmploymentContractTemplate" lang="java">
<string name="name" title="Name" unique="true" required="true" />
<many-to-one name="metaFile" ref="com.axelor.meta.db.MetaFile" title="Template" required="true" />
<string name="description" title="Description" large="true" />
<many-to-many name="companySet" ref="com.axelor.apps.base.db.Company" title="Companies"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,78 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="EmploymentContract" lang="java">
<many-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" title="Employee"/>
<many-to-one name="payCompany" ref="com.axelor.apps.base.db.Company" title="Pay Company" required="true"/>
<many-to-one name="companyDepartment" ref="com.axelor.apps.base.db.CompanyDepartment" title="Company department" />
<integer name="employmentContractVersion" title="Amendment" default="0"/>
<integer name="amendmentTypeSelect" selection="hr.employment.contract.amendment.type.select" title="Amendment type"/>
<date name="amendmentDate" title="Amendment Date"/>
<integer name="status" title="Status" selection="hr.employment.contract.status"/>
<many-to-one name="contractType" ref="com.axelor.apps.hr.db.EmploymentContractType" title="Contract type" />
<date name="startDate" title="Start date"/>
<date name="endDate" title="End date"/>
<time name="startTime" title="Start time"/>
<string name="duration" title="Duration"/>
<string name="trialPeriodDuration" title="Trial period duration"/>
<string name="position" title="Position"/>
<string name="coefficient" title="Coefficient"/>
<decimal name="weeklyDuration" title="Weekly duration"/>
<decimal name="hourlyGrossSalary" title="Hourly gross salary"/>
<string name="endContractDetails" title="Details"/>
<many-to-one name="endOfContractReason" ref="com.axelor.apps.hr.db.EndOfContractReason" title="End of contract reason"/>
<date name="signatureDate" title="Signature date"/>
<string name="hoursDistribution" title="Hours distribution" large="true"/>
<integer name="executiveStatusSelect" selection="hr.employment.contract.executiveStatus.select" title="Executive Status"/>
<decimal name="minMonthlyRemuneration" title="Min monthly remuneration"/>
<many-to-one name="employmentContractTemplate" ref="com.axelor.apps.hr.db.EmploymentContractTemplate" title="Employment contract template" />
<string name="employment" title="Employment"/>
<decimal name="annualGrossSalary" title="Annual gross salary"/>
<decimal name="monthlyGlobalCost" title="Monthly global cost"/>
<many-to-many name="otherCostsEmployeeSet" title="Others" ref="com.axelor.apps.hr.db.OtherCostsEmployee"/>
<string name="fullName" namecolumn="true">
<![CDATA[
String fullName = "";
if (contractType != null) {
fullName += contractType.getName();
}
if (employee != null) {
fullName += (fullName.isEmpty()?"":"-")+employee.getName();
}
if (startDate != null) {
fullName += (fullName.isEmpty()?"":"-")+startDate.toString();
}
if (endDate != null) {
fullName += (fullName.isEmpty()?"":"-")+endDate.toString();
}
return fullName;
]]>
</string>
<extra-code><![CDATA[
// EXECUTIVE STATUS SELECT
public static final int EXECUTIVE_STATUS_EXECUTIVE = 1;
public static final int EXECUTIVE_STATUS_NON_EXECUTIVE = 2;
// STATUS SELECT
public static final int STATUS_IN_TRIAL = 1;
public static final int STATUS_ACTIVE = 2;
public static final int STATUS_CLOSED = 3;
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="EmploymentContractType" lang="java">
<string name="name" title="Name" required="true" />
</entity>
</domain-models>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="EndOfContractReason" cacheable="true">
<string name="reason" namecolumn="true" title="End of contract reason" required="true"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,16 @@
<?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="exception" package="com.axelor.exception.db"/>
<entity name="ExceptionOrigin" lang="java">
<extra-code>
<![CDATA[
public static final String REMINDER = "reminder";
public static final String LEAVE_MANAGEMENT = "leaveManagement";
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,81 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="Expense" cacheable="true">
<string name="expenseSeq" title="Expense N°" readonly="true"/>
<date name="sentDate" title="Sent Date" readonly="true" />
<many-to-one name="period" ref="com.axelor.apps.base.db.Period" title="Period"/>
<integer name="statusSelect" title="Status" selection="hrs.expenses.status.select" default="1" readonly="true"/>
<many-to-one name="user" ref="com.axelor.auth.db.User" title="User" column="user_id" readonly="true"/>
<one-to-many name="generalExpenseLineList" ref="com.axelor.apps.hr.db.ExpenseLine" title="General expense lines" mappedBy="generalExpense"/>
<one-to-many name="kilometricExpenseLineList" ref="com.axelor.apps.hr.db.ExpenseLine" title="Kilometric lines" mappedBy="kilometricExpense"/>
<decimal name="exTaxTotal" title="Total W.T." scale="2" precision="20" readonly="true"/>
<decimal name="taxTotal" title="Total tax" scale="2" precision="20" readonly="true"/>
<decimal name="inTaxTotal" title="Total A.T.I." scale="2" precision="20" readonly="true"/>
<many-to-one name="company" ref="com.axelor.apps.base.db.Company"/>
<date name="moveDate" title="Move Date"/>
<many-to-one name="move" ref="com.axelor.apps.account.db.Move"/>
<many-to-one name="validatedBy" ref="com.axelor.auth.db.User" title="Validated by" readonly="true"/>
<many-to-one name="refusedBy" ref="com.axelor.auth.db.User" title="Refused By" readonly="true"/>
<date name="validationDate" title="Validation Date" readonly="true" />
<date name="refusalDate" title="Refusal Date" readonly="true" />
<string name="groundForRefusal" title="Ground For Refusal" large="true"/>
<boolean name="ventilated"/>
<integer name="companyCbSelect" title="Expense paid with company's credit card" selection="hr.expense.company.cb.payment" default="1"/>
<many-to-one name="payrollPreparation" ref="com.axelor.apps.hr.db.PayrollPreparation"/>
<boolean name="multipleUsers" title="Multiple users" default="false"/>
<one-to-many name="employeeAdvanceUsageList" ref="com.axelor.apps.hr.db.EmployeeAdvanceUsage" mappedBy="expense" title="Employee advances" readonly="true" orphanRemoval="false"/>
<decimal name="advanceAmount" title="Advance" />
<decimal name="withdrawnCash" title="Withdrawn cash" />
<decimal name="personalExpenseAmount" title="Personal expense amount" hidden="true" />
<!-- Payment -->
<date name="paymentDate" title="Payment Date" readonly="true"/>
<many-to-one name="paymentMode" ref="com.axelor.apps.account.db.PaymentMode" title="Payment mode"/>
<many-to-one name="bankOrder" ref="com.axelor.apps.bankpayment.db.BankOrder" readonly="true" title="Bank Order"/>
<decimal name="paymentAmount" title="Payment amount" readonly="true" />
<integer name="paymentStatusSelect" title="Payment Status" selection="invoice.payment.status.select" readonly="true" default="0"/>
<many-to-one name="paymentMove" ref="com.axelor.apps.account.db.Move"/>
<string name="fullName" namecolumn="true" readonly="true">
<![CDATA[
String fullName = "";
if(this.getUser() != null) {
fullName = this.getUser().getFullName();
}
if(this.getCreatedOn() != null){
fullName = fullName.concat(" ").concat(this.getCreatedOn().format(java.time.format.DateTimeFormatter.ofPattern("yyyyMMdd HH:mm")));
}
return fullName;
]]>
</string>
<many-to-one name="bankDetails" ref="com.axelor.apps.base.db.BankDetails" title="Bank"/>
<unique-constraint columns="expenseSeq,company"/>
<extra-code>
<![CDATA[
//STATUS SELECT
public static final int STATUS_DRAFT = 1;
public static final int STATUS_CONFIRMED = 2;
public static final int STATUS_VALIDATED = 3;
public static final int STATUS_REIMBURSED = 4;
public static final int STATUS_REFUSED = 5;
public static final int STATUS_CANCELED = 6;
public static final int COMPANY_CB_PAYMENT_NO = 1;
public static final int COMPANY_CB_PAYMENT_COMPANYS_CREDIT_CARD = 2;
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,62 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="ExpenseLine" cacheable="true">
<!-- Original part of expenseLine -->
<many-to-one name="user" ref="com.axelor.auth.db.User" title="User" column="user_id"/>
<many-to-one name="project" ref="com.axelor.apps.project.db.Project" title="Project" />
<many-to-one name="expenseProduct" ref="com.axelor.apps.base.db.Product" title="Expense Type" required="true" />
<date name="expenseDate" title="Expense date" required="true"/>
<decimal name="untaxedAmount" title="Untaxed amount" readonly="true"/>
<decimal name="totalTax" title="Total tax" />
<decimal name="totalAmount" title="Total amount with tax" required="true"/>
<string name="comments" title="Comments" large="true"/>
<boolean name="toInvoice"/>
<boolean name="invoiced" readonly="true"/>
<many-to-one name="expense" ref="com.axelor.apps.hr.db.Expense" title="Expense" />
<many-to-one name="generalExpense" ref="com.axelor.apps.hr.db.Expense" title="General Expense"/>
<many-to-one name="kilometricExpense" ref="com.axelor.apps.hr.db.Expense" title="Kilometric Allowance" />
<one-to-many name="analyticMoveLineList" ref="com.axelor.apps.account.db.AnalyticMoveLine" title="Analytic distribution lines" mappedBy="expenseLine"/>
<many-to-one name="analyticDistributionTemplate" title="Analytic distribution template" ref="com.axelor.apps.account.db.AnalyticDistributionTemplate"/>
<many-to-one name="justificationMetaFile" ref="com.axelor.meta.db.MetaFile" title="Justification" />
<!-- integration of KilometricAllowance -->
<many-to-one name="kilometricAllowParam" ref="com.axelor.apps.hr.db.KilometricAllowParam" title="K.A.P."/>
<integer name="kilometricTypeSelect" title="Type" selection="hr.kilometric.allowance.type.select"/>
<decimal name="distance" title="Distance travelled" min="0"/>
<string name="fromCity" title="Starting city" />
<string name="toCity" title="Arriving city" />
<string name="fullName" namecolumn="true">
<![CDATA[
String fullName = "";
if(expense != null && expense.getFullName() != null) {
fullName += expense.getFullName();
}
if (!fullName.isEmpty()) {
fullName += "-" + id;
}
else {
fullName = id.toString();
}
return fullName;
]]>
</string>
<extra-code>
<![CDATA[
// KILOMETRIC TYPE SELECT
public static final int KILOMETRIC_TYPE_ONE_WAY = 1;
public static final int KILOMETRIC_TYPE_ROUND_TRIP = 2;
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,50 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="ExtraHours" cacheable="true">
<many-to-one name="user" ref="com.axelor.auth.db.User" title="User" required="true" column="user_id"/>
<many-to-one name="company" ref="com.axelor.apps.base.db.Company" required="true"/>
<integer name="statusSelect" title="Status" selection="hrs.leave.request.status.select" default="1" readonly="true"/>
<date name="sentDate" title="Sent Date" readonly="true"/>
<many-to-one name="validatedBy" ref="com.axelor.auth.db.User" title="Validated by" readonly="true"/>
<many-to-one name="refusedBy" ref="com.axelor.auth.db.User" title="Refused By" readonly="true"/>
<date name="validationDate" title="Validation Date" readonly="true"/>
<date name="refusalDate" title="Refusal Date" readonly="true" />
<string name="groundForRefusal" title="Ground For Refusal" large="true"/>
<decimal name="totalQty" title="Total (h)" readonly="true"/>
<one-to-many name="extraHoursLineList" ref="com.axelor.apps.hr.db.ExtraHoursLine" title="Extra Hours" mappedBy="extraHours"/>
<string name="fullName" namecolumn="true" readonly="true">
<![CDATA[
String fullName = "";
if(this.getUser() != null) {
fullName = this.getUser().getFullName();
}
if(this.getCreatedOn() != null){
fullName = fullName.concat(" ").concat(this.getCreatedOn().format(java.time.format.DateTimeFormatter.ofPattern("yyyyMMdd HH:mm")));
}
return fullName;
]]>
</string>
<extra-code>
<![CDATA[
public static final Integer STATUS_DRAFT = 1;
public static final Integer STATUS_CONFIRMED = 2;
public static final Integer STATUS_VALIDATED = 3;
public static final Integer STATUS_REFUSED = 4;
public static final Integer STATUS_CANCELED = 5;
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="ExtraHoursLine" cacheable="true">
<many-to-one name="payrollPreparation" ref="com.axelor.apps.hr.db.PayrollPreparation"/>
<many-to-one name="extraHours" ref="com.axelor.apps.hr.db.ExtraHours"/>
<many-to-one name="user" ref="com.axelor.auth.db.User" title="User" required="true" column="user_id"/>
<date name="date" column="date_val" title="From" required="true"/>
<decimal name="qty" title="Hours"/>
<many-to-one name="project" ref="com.axelor.apps.project.db.Project" title="Project"/>
<string name="description" title="Description" large="true"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,71 @@
<?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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="HrBatch" lang="java" cacheable="true">
<!-- HEADER -->
<string name="code" title="Code" namecolumn="true" unique="true"/>
<integer name="actionSelect" title="Action" required="true" selection="ihr.batch.action.select"/>
<many-to-one name="company" ref="com.axelor.apps.base.db.Company" title="Company" />
<!-- OTHERS INFORMATIONS -->
<string name="description" title="Description" large="true" />
<one-to-many name="batchList" ref="com.axelor.apps.base.db.Batch" mappedBy="hrBatch" title="Batchs" />
<!-- Leave Management -->
<many-to-one name="leaveReason" ref="com.axelor.apps.hr.db.LeaveReason" title="Leave Reason"/>
<decimal name="dayNumber" title="Number of days" scale="4" precision="8"/>
<date name="startDate" title="Start date"/>
<date name="endDate" title="End date"/>
<string name="comments" title="Comment" />
<many-to-many name="employeeSet" ref="com.axelor.apps.hr.db.Employee" title="Employees"/>
<many-to-many name="planningSet" ref="com.axelor.apps.base.db.WeeklyPlanning" title="Plannings"/>
<boolean name="useWeeklyPlanningCoef" title="Use weekly plannning coef." />
<!-- Seniority Leave Management -->
<date name="referentialDate" title="Referential date for seniority" />
<!-- Payroll Preparation Generation -->
<many-to-one name="period" ref="com.axelor.apps.base.db.Period" title="Period" />
<!-- Payroll Preparation Export -->
<integer name="payrollPreparationExportTypeSelect" title="Export type" selection="hr.batch.payroll.preparation.export.type.select" />
<boolean name="exportAlreadyExported" title="Also export already exported payroll preparations" />
<integer name="employmentContractExportTypeSelect" title="Export type" selection="hr.batch.employment.contract.export.type.select"/>
<!-- Timesheet Reminder -->
<long name="daysBeforeReminder" title="Number of days before reminder" />
<many-to-one name="template" ref="com.axelor.apps.message.db.Template" title="Template"/>
<extra-code><![CDATA[
// ACTION TYPE
public static final int ACTION_LEAVE_MANAGEMENT = 1;
public static final int ACTION_SENIORITY_LEAVE_MANAGEMENT = 2;
public static final int ACTION_PAYROLL_PREPARATION_GENERATION = 3;
public static final int ACTION_PAYROLL_PREPARATION_EXPORT = 4;
public static final int ACTION_LEAVE_MANAGEMENT_RESET = 5;
public static final int ACTION_EMPLOYMENT_CONTRACT_EXPORT = 6;
public static final int ACTION_TIMESHEET_REMINDER = 7;
//PAYROLL PREPARATION EXPORT TYPE SELECT
public static final int EXPORT_TYPE_STANDARD = 1;
public static final int EXPORT_TYPE_NIBELIS = 2;
//EMPLOYMENT CONTRACT EXPORT TYPE SELECT
public static final int EMPLOYMENT_CONTRACT_EXPORT_TYPE_SILAE = 1;
]]></extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,131 @@
<?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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="HRConfig" cacheable="true">
<one-to-one name="company" ref="com.axelor.apps.base.db.Company" title="Company" required="true" unique="true"/>
<many-to-one name="kilometricExpenseProduct" ref="com.axelor.apps.base.db.Product" title="Kilometric expense product" />
<decimal name="lunchVoucherWageShare" title="Lunch Voucher Wage Share" scale="2" precision="20"/>
<decimal name="lunchVoucherEmployersShare" title="Lunch Voucher Employer's Share" scale="2" precision="20"/>
<many-to-one name="toJustifyLeaveReason" title="Leave Reason for Leave to justify" ref="com.axelor.apps.hr.db.LeaveReason"/>
<string name="exportCodeForExtraHours" title="Export code for extra hour management" />
<!-- LUNCH VOUCHERS MANAGEMENT -->
<integer name="minStockLunchVoucher" title="Minimum Stock of Lunch Vouchers"/>
<integer name="availableStockLunchVoucher" title="Available Stock of Lunch Vouchers"/>
<many-to-one name="supplierLunchVoucher" ref="com.axelor.apps.base.db.Partner" title="Lunch voucher supplier"/>
<integer name="lunchVoucherFormatSelect" title="Lunch Voucher Format" selection="hr.lunch.voucher.mgt.line.lunch.voucher.format.select"/>
<string name="exportCodeForLunchVoucherManagement" title="Export code for lunch voucher management" />
<!-- LEAVE REQUEST MAIL NOTIFICATION -->
<boolean name="leaveMailNotification" title="Leave Request Notification Mail"/>
<many-to-one name="sentLeaveTemplate" ref="com.axelor.apps.message.db.Template" title="Sent Leave Request Template"/>
<many-to-one name="validatedLeaveTemplate" ref="com.axelor.apps.message.db.Template" title="Validated Leave Request Template"/>
<many-to-one name="refusedLeaveTemplate" ref="com.axelor.apps.message.db.Template" title="Refused Leave Request Template"/>
<many-to-one name="canceledLeaveTemplate" ref="com.axelor.apps.message.db.Template" title="Canceled Leave Request Template"/>
<many-to-one name="publicHolidayEventsPlanning" ref="com.axelor.apps.base.db.EventsPlanning" title="Public Holiday Planning"/>
<many-to-one name="weeklyPlanning" ref="com.axelor.apps.base.db.WeeklyPlanning" title="Weekly Planning"/>
<one-to-many name="kilometricAllowanceRateList" ref="com.axelor.apps.hr.db.KilometricAllowanceRate" title="Kilometric allowance rates" mappedBy="hrConfig"/>
<!-- TIMESHEET MAIL NOTIFICATION -->
<boolean name="timesheetMailNotification" title="Timesheet Notification Mail"/>
<many-to-one name="sentTimesheetTemplate" ref="com.axelor.apps.message.db.Template" title="Confirmed Timesheet Template"/>
<many-to-one name="validatedTimesheetTemplate" ref="com.axelor.apps.message.db.Template" title="Validated Timesheet Template"/>
<many-to-one name="refusedTimesheetTemplate" ref="com.axelor.apps.message.db.Template" title="Refused Timesheet Template"/>
<many-to-one name="canceledTimesheetTemplate" ref="com.axelor.apps.message.db.Template" title="Canceled Timesheet Template"/>
<!-- EXPENSE MAIL NOTIFICATION -->
<boolean name="expenseMailNotification" title="Expense Notification Mail"/>
<many-to-one name="sentExpenseTemplate" ref="com.axelor.apps.message.db.Template" title="Sent Expense Template"/>
<many-to-one name="validatedExpenseTemplate" ref="com.axelor.apps.message.db.Template" title="Validated Expense Template"/>
<many-to-one name="refusedExpenseTemplate" ref="com.axelor.apps.message.db.Template" title="Refused Expense Template"/>
<many-to-one name="canceledExpenseTemplate" ref="com.axelor.apps.message.db.Template" title="Canceled Expense Template"/>
<many-to-one name="expenseSequence" ref="com.axelor.apps.base.db.Sequence" title="Expense Sequence"/>
<!-- EXTRA HOURS MAIL NOTIFICATION -->
<boolean name="extraHoursMailNotification" title="Extra Hours Notification Mail"/>
<many-to-one name="sentExtraHoursTemplate" ref="com.axelor.apps.message.db.Template" title="Confirmed Extra Hours Template"/>
<many-to-one name="validatedExtraHoursTemplate" ref="com.axelor.apps.message.db.Template" title="Validated Extra Hours Template"/>
<many-to-one name="refusedExtraHoursTemplate" ref="com.axelor.apps.message.db.Template" title="Refused Extra Hours Template"/>
<many-to-one name="canceledExtraHoursTemplate" ref="com.axelor.apps.message.db.Template" title="Canceled Extra Hours Template"/>
<!-- Seniority Leave Management Batch -->
<one-to-many name="leaveManagementBatchRuleList" ref="com.axelor.apps.hr.db.LeaveManagementBatchRule" title="Leave management batch rule list" mappedBy="hrConfig"/>
<string name="seniorityVariableName" title="Name for seniority variable" />
<string name="ageVariableName" title="Name for age variable" />
<string name="workingDaysVariableName" title="Name for working day variable" />
<string name="totalWorkingDaysVariableName" title="Name for total working day in a period variable"/>
<!-- Unique product for the timesheet -->
<boolean name="useUniqueProductForTimesheet" title="Use unique product for timesheet" />
<many-to-one name="uniqueTimesheetProduct" ref="com.axelor.apps.base.db.Product" title="Unique product for timesheet" />
<!-- DPAE -->
<boolean name="enableDPAE" title="Enable DPAE" default="false"/>
<string name="healthService" title="Health service"/>
<many-to-one name="healthServiceAddress" title="Health service address" ref="com.axelor.apps.base.db.Address"/>
<track>
<field name="company" on="UPDATE"/>
<field name="kilometricExpenseProduct" on="UPDATE"/>
<field name="lunchVoucherWageShare" on="UPDATE"/>
<field name="lunchVoucherEmployersShare" on="UPDATE"/>
<field name="toJustifyLeaveReason" on="UPDATE"/>
<field name="exportCodeForExtraHours" on="UPDATE"/>
<field name="minStockLunchVoucher" on="UPDATE"/>
<field name="availableStockLunchVoucher" on="UPDATE"/>
<field name="supplierLunchVoucher" on="UPDATE"/>
<field name="lunchVoucherFormatSelect" on="UPDATE"/>
<field name="exportCodeForLunchVoucherManagement" on="UPDATE"/>
<field name="leaveMailNotification" on="UPDATE"/>
<field name="sentLeaveTemplate" on="UPDATE"/>
<field name="validatedLeaveTemplate" on="UPDATE"/>
<field name="refusedLeaveTemplate" on="UPDATE"/>
<field name="canceledLeaveTemplate" on="UPDATE"/>
<field name="publicHolidayEventsPlanning" on="UPDATE"/>
<field name="weeklyPlanning" on="UPDATE"/>
<field name="timesheetMailNotification" on="UPDATE"/>
<field name="sentTimesheetTemplate" on="UPDATE"/>
<field name="validatedTimesheetTemplate" on="UPDATE"/>
<field name="refusedTimesheetTemplate" on="UPDATE"/>
<field name="canceledTimesheetTemplate" on="UPDATE"/>
<field name="expenseMailNotification" on="UPDATE"/>
<field name="sentExpenseTemplate" on="UPDATE"/>
<field name="validatedExpenseTemplate" on="UPDATE"/>
<field name="refusedExpenseTemplate" on="UPDATE"/>
<field name="canceledExpenseTemplate" on="UPDATE"/>
<field name="expenseSequence" on="UPDATE"/>
<field name="extraHoursMailNotification" on="UPDATE"/>
<field name="sentExtraHoursTemplate" on="UPDATE"/>
<field name="validatedExtraHoursTemplate" on="UPDATE"/>
<field name="refusedExtraHoursTemplate" on="UPDATE"/>
<field name="canceledExtraHoursTemplate" on="UPDATE"/>
<field name="seniorityVariableName" on="UPDATE"/>
<field name="ageVariableName" on="UPDATE"/>
<field name="workingDaysVariableName" on="UPDATE"/>
<field name="totalWorkingDaysVariableName" on="UPDATE"/>
<field name="useUniqueProductForTimesheet" on="UPDATE"/>
<field name="uniqueTimesheetProduct" on="UPDATE"/>
</track>
</entity>
</domain-models>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="KilometricAllowParam" lang="java" >
<string name="name" title="Name" translatable="true"/>
<string name="code" title="Code" unique="true"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity sequential="true" name="KilometricAllowanceRate" lang="java" >
<many-to-one name="hrConfig" ref="com.axelor.apps.hr.db.HRConfig" title="HrConfig"/>
<many-to-one name="kilometricAllowParam" ref="com.axelor.apps.hr.db.KilometricAllowParam" title="Kilometric Allowance Param" required="true"/>
<one-to-many name="kilometricAllowanceRuleList" ref="com.axelor.apps.hr.db.KilometricAllowanceRule" mappedBy="kilometricAllowanceRate"/>
<finder-method name="findByVehicleKillometricAllowanceParam" using="kilometricAllowParam"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="KilometricAllowanceRule" lang="java" >
<many-to-one name="hrConfig" ref="com.axelor.apps.hr.db.HRConfig" title="HrConfig"/>
<decimal name="rate" title="Rate" required="true" precision="20" scale="3" />
<decimal name="minimumCondition" title="Minimum Condition" />
<decimal name="maximumCondition" title="Maximum Condition" />
<many-to-one name="kilometricAllowanceRate" ref="com.axelor.apps.hr.db.KilometricAllowanceRate"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="KilometricLog" lang="java" >
<decimal name="distanceTravelled" title="Distance travelled" />
<many-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" title="Employee" />
<many-to-one name="year" ref="com.axelor.apps.base.db.Year" title="Year" />
<one-to-many name="expenseLineList" ref="com.axelor.apps.hr.db.ExpenseLine" title="Kilometric allowance list"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="LeaveLine" cacheable="true">
<many-to-one name="employee" ref="com.axelor.apps.hr.db.Employee"/>
<many-to-one name="leaveReason" ref="com.axelor.apps.hr.db.LeaveReason" title="Type" />
<decimal name="quantity" title="Remaining" scale="4" precision="8"/>
<decimal name="daysToValidate" title="Waiting for validation" scale="4" precision="8"/>
<decimal name="daysValidated" title="Days validated" scale="4" precision="8"/>
<decimal name="totalQuantity" title="Acquired" scale="4" precision="8"/>
<one-to-many name="leaveManagementList" title="Leaves Management" ref="com.axelor.apps.hr.db.LeaveManagement" mappedBy="leaveLine"/>
<string name="name" namecolumn="true">
<![CDATA[
if(this.getLeaveReason() != null)
return this.getLeaveReason().getLeaveReason();
else
return " ";
]]>
</string>
</entity>
</domain-models>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="LeaveManagement" cacheable="true">
<many-to-one name="leaveLine" ref="com.axelor.apps.hr.db.LeaveLine"/>
<decimal name="value" title="Value" scale="4" precision="8"/>
<decimal name="oldValue" scale="4" precision="8"/>
<date name="date" column="date_val" title="Date" required="true"/>
<date name="fromDate" title="From" />
<date name="toDate" title="To (included)" />
<string name="comments" title="Comments" large="true" multiline="true"/>
<many-to-one name="user" ref="com.axelor.auth.db.User" title="User" required="true" column="user_id"/>
<boolean name="counted"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="LeaveManagementBatchRule" cacheable="true">
<integer name="executiveStatusSelect" title="Status" selection="hr.employment.contract.executiveStatus.select" />
<string name="formula" title="Formula"/>
<decimal name="leaveDayNumber" title="Leave day number" />
<many-to-one name="hrConfig" ref="com.axelor.apps.hr.db.HRConfig" />
</entity>
</domain-models>

View File

@@ -0,0 +1,33 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="LeaveReason" cacheable="true">
<string name="leaveReason" namecolumn="true" title="Leave reason" required="true"/>
<boolean name="manageAccumulation" title="Manage Accumulation"/>
<boolean name="allowNegativeValue" title="Allow negative value for leaves"/>
<boolean name="allowInjection" title="Allow Injection"/>
<string name="instruction" title="Instruction" multiline="true" large="true"/>
<boolean name="payrollPreprationExport" title="Export for payroll preparation" />
<string name="exportCode" title="Export code" />
<decimal name="defaultDayNumberGain" title="Default day number gain"/>
<boolean name="selectedByMgtOnly" title="Can only be selected by HR Management"/>
<integer name="unitSelect" title="Unit" selection="hr.leave.reason.unit.select" />
<extra-code>
<![CDATA[
public static final int UNIT_SELECT_DAYS = 1;
public static final int UNIT_SELECT_HOURS = 2;
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,58 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="LeaveRequest" cacheable="true">
<many-to-one name="user" ref="com.axelor.auth.db.User" title="User" required="true" column="user_id"/>
<integer name="statusSelect" title="Status" selection="hrs.leave.request.status.select" default="1" readonly="true"/>
<date name="requestDate" title="Request date" readonly="true" />
<datetime name="fromDateT" title="From" required="true"/>
<integer name="startOnSelect" title="Start On" selection="hr.start.on.select" required="true" default="1"/>
<datetime name="toDateT" title="To (included)" />
<integer name="endOnSelect" title="End On" selection="hr.start.on.select" required="true" default="2"/>
<decimal name="duration" title="Duration" scale="1" precision="5"/>
<string name="comments" title="Comments" large="true"/>
<many-to-one name="company" ref="com.axelor.apps.base.db.Company"/>
<integer name="injectConsumeSelect" title="Inject/Consume" selection="hrs.leave.reason.inject.consume.select" default="1"/>
<many-to-one name="validatedBy" ref="com.axelor.auth.db.User" title="Validated by" readonly="true"/>
<many-to-one name="refusedBy" ref="com.axelor.auth.db.User" title="Refused By" readonly="true"/>
<date name="validationDate" title="Validation Date" readonly="true" />
<date name="refusalDate" title="Refusal Date" readonly="true" />
<string name="groundForRefusal" title="Ground For Refusal" large="true"/>
<many-to-one name="icalendarEvent" ref="com.axelor.apps.base.db.ICalendarEvent" title="Event" />
<many-to-one name="leaveLine" ref="com.axelor.apps.hr.db.LeaveLine" title="Leave line" />
<decimal name="quantityBeforeValidation" title="Available quantity (before validation)" scale="4" precision="8" />
<boolean name="toJustifyLeaveReason" title="Leave to justify"/>
<string name="fullName" namecolumn="true" readonly="true">
<![CDATA[
if(this.getUser() != null && this.getCreatedOn() != null)
return this.getUser().getFullName()+" "+this.getCreatedOn().getDayOfMonth()+"/"+this.getCreatedOn().getMonthValue()
+"/"+this.getCreatedOn().getYear()+" "+this.getCreatedOn().getHour()+":"+this.getCreatedOn().getMinute();
else
return " ";
]]>
</string>
<extra-code>
<![CDATA[
public static final int SELECT_CONSUME = 1;
public static final int SELECT_INJECT = 2;
public static final int STATUS_DRAFT = 1;
public static final int STATUS_AWAITING_VALIDATION = 2;
public static final int STATUS_VALIDATED = 3;
public static final int STATUS_REFUSED = 4;
public static final int STATUS_CANCELED = 5;
public static final int SELECT_MORNING = 1;
public static final int SELECT_AFTERNOON = 2;
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="LunchVoucherAdvance" cacheable="true">
<date name="distributionDate" title="Distribution date"/>
<integer name="nbrLunchVouchers" title="Lunch vouchers distributed" min="1"/>
<integer name="nbrLunchVouchersUsed" title="Lunch vouchers used" min="0"/>
<decimal name="lunchVoucherWageShare" title="Lunch Voucher Wage Share" scale="2" precision="20" readonly="true"/>
<decimal name="lunchVoucherEmployersShare" title="Lunch Voucher Employer's Share" scale="2" precision="20" readonly="true"/>
<string name="comments" title="Comment" large="true"/>
<many-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" title="Employee"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,44 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db" />
<entity name="LunchVoucherMgt" cacheable="true">
<many-to-one name="company" ref="com.axelor.apps.base.db.Company" title="Company" />
<many-to-one name="payPeriod" ref="com.axelor.apps.base.db.Period" title="Pay period" />
<many-to-one name="leavePeriod" ref="com.axelor.apps.base.db.Period" title="Leave period" />
<integer name="statusSelect" title="Status" selection="hrs.lunch.voucher.mgt.status.select" default="1" readonly="true" />
<integer name="requestedLunchVouchers" title="Requested lunch vouchers on the period" readonly="true" />
<integer name="totalLunchVouchers" title="Total lunch vouchers" readonly="true" />
<integer name="givenLunchVouchers"
title="Given lunch vouchers on the period"
readonly="true"/>
<decimal name="lunchVoucherWageShare" title="Lunch Voucher Wage Share" scale="2" precision="20" readonly="true" />
<decimal name="lunchVoucherEmployersShare" title="Lunch Voucher Employer's Share" scale="2" precision="20" readonly="true" />
<one-to-many name="lunchVoucherMgtLineList" ref="com.axelor.apps.hr.db.LunchVoucherMgtLine" title="Lunch Voucher Lines" mappedBy="lunchVoucherMgt" orphanRemoval="true" />
<integer name="stockQuantityStatus" title="Stock quantity status" readonly="true" />
<integer name="stockLineQuantity" title="Quantity" min="0"/>
<string name="stockLineComment" title="Comment" large="true"/>
<date name="exportDate" title="Export date" />
<many-to-one name="csvFile" title="CSV" ref="com.axelor.meta.db.MetaFile" />
<extra-code>
<![CDATA[
public static final Integer STATUS_DRAFT = 1;
public static final Integer STATUS_CALCULATED = 2;
public static final Integer STATUS_VALIDATED = 3;
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="LunchVoucherMgtLine" cacheable="true">
<many-to-one name="lunchVoucherMgt" ref="com.axelor.apps.hr.db.LunchVoucherMgt" title="Lunch Voucher" readonly="true"/>
<many-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" title="Employee" readonly="true"/>
<integer name="canteenEntries" title="Number of canteen entries"/>
<integer name="daysOverseas" title="Number of days overseas"/>
<integer name="invitation" title="Invitation"/>
<integer name="inAdvanceNbr" title="In advance" readonly="true"/>
<integer name="lunchVoucherNumber" title="Number of lunch vouchers" readonly="true"/>
<integer name="daysWorkedNbr" title="Number of days worked" readonly="true"/>
<string name="comments" title="Comments" large="true"/>
<integer name="givenToEmployee" title="Given to Employee"/>
<many-to-one name="payrollPreparation" ref="com.axelor.apps.hr.db.PayrollPreparation" title="Payroll preparation" />
<integer name="statusSelect" title="Status" selection="hr.lunch.voucher.line.status.select" readonly="true" />
<integer name="lunchVoucherFormatSelect" title="Lunch Voucher Format" selection="hr.lunch.voucher.mgt.line.lunch.voucher.format.select" readonly="true"/>
<extra-code>
<![CDATA[
public static final Integer STATUS_CALCULATED = 1;
public static final Integer STATUS_ANOMALY = 2;
]]>
</extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="OtherCostsEmployee" cacheable="true">
<decimal name="amount" title="Amount" scale="2" precision="15"/>
<string name="description" title="Description" large="true"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,12 @@
<?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="base" package="com.axelor.apps.base.db"/>
<entity name="Partner" lang="java">
<one-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" title="Employee" mappedBy="contactPartner"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="PayrollLeave" cacheable="true">
<many-to-one name="payrollPreparation" ref="com.axelor.apps.hr.db.PayrollPreparation"/>
<date name="fromDate" title="From" required="true"/>
<date name="toDate" title="To" required="true"/>
<decimal name="duration" title="Duration" scale="1" precision="5"/>
<many-to-one name="leaveReason" ref="com.axelor.apps.hr.db.LeaveReason" title="Type" />
<many-to-one name="leaveRequest" ref="com.axelor.apps.hr.db.LeaveRequest" title="Leave request" />
</entity>
</domain-models>

View File

@@ -0,0 +1,50 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="PayrollPreparation" cacheable="true">
<many-to-one name="employmentContract" ref="com.axelor.apps.hr.db.EmploymentContract" title="Employment contract"/>
<many-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" required="true" title="Employee"/>
<many-to-one name="company" ref="com.axelor.apps.base.db.Company" title="Company" required="true"/>
<many-to-one name="period" ref="com.axelor.apps.base.db.Period" title="Period" required="true" />
<decimal name="duration" title="Working days' number" scale="1" precision="5" readonly="true"/>
<decimal name="leaveDuration" title="Leave days' number" scale="1" precision="5" readonly="true" />
<many-to-many name="otherCostsEmployeeSet" title="Others" ref="com.axelor.apps.hr.db.OtherCostsEmployee"/>
<string name="comments" title="Comments" large="true"/>
<one-to-many name="extraHoursLineList" ref="com.axelor.apps.hr.db.ExtraHoursLine" title="Extra hours" mappedBy="payrollPreparation" orphanRemoval="false"/>
<one-to-many name="expenseList" ref="com.axelor.apps.hr.db.Expense" title="Expenses" mappedBy="payrollPreparation" orphanRemoval="false"/>
<one-to-many name="employeeBonusMgtLineList" ref="com.axelor.apps.hr.db.EmployeeBonusMgtLine" title="Employee bonuses" mappedBy="payrollPreparation" orphanRemoval="false"/>
<one-to-many name="lunchVoucherMgtLineList" ref="com.axelor.apps.hr.db.LunchVoucherMgtLine" title="Lunch vouchers" mappedBy="payrollPreparation" orphanRemoval="false"/>
<decimal name="extraHoursNumber" title="Extra hours' number" scale="2" precision="5" readonly="true"/>
<decimal name="expenseAmount" title="Expenses amount to pay" scale="2" precision="15" readonly="true"/>
<decimal name="employeeBonusAmount" title="Employee bonus amount" scale="2" precision="15" readonly="true"/>
<decimal name="lunchVoucherNumber" title="Lunch vouchers' number" scale="1" precision="5" readonly="true"/>
<boolean name="exported" title="Exported" readonly="true" default="false" />
<date name="exportDate" title="Export date" readonly="true" />
<many-to-many name="batchList" title="Mass export list" ref="com.axelor.apps.base.db.Batch" />
<integer name="exportTypeSelect" title="Export type" selection="hr.batch.payroll.preparation.export.type.select" />
<decimal name="annualGrossSalary" title="Annual gross salary" scale="2" precision="15"/>
<decimal name="netSalary" title="Net salary" scale="2" precision="15"/>
<decimal name="socialCharges" title="Social Charges" scale="2" precision="15"/>
<decimal name="total" title="Total to pay" scale="2" precision="15"/>
<string name="fullName" namecolumn="true" readonly="true">
<![CDATA[
return this.getEmployee().getName()+" "+this.getCompany().getName()+" "+this.getPeriod().getName();
]]>
</string>
</entity>
</domain-models>

View File

@@ -0,0 +1,14 @@
<?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="base" package="com.axelor.apps.base.db"/>
<entity name="Period" lang="java" cacheable="true">
<boolean name="allowExpenseCreation" title="Allow expense creation" default="true" />
</entity>
</domain-models>

View File

@@ -0,0 +1,16 @@
<?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="base" package="com.axelor.apps.base.db"/>
<entity name="Product" lang="java">
<boolean name="expense" title="Expense"/>
<boolean name="isActivity" title="Activity"/>
<boolean name="deductLunchVoucher" title="Deduct lunch voucher"/>
<boolean name="blockExpenseTax" title="Block expense tax modification" default="false"/>
<boolean name="personalExpense" title="Personal expense" />
<boolean name="unavailableToUsers" title="Unavailable to users" default="false"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" ?>
<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="project" package="com.axelor.apps.project.db"/>
<entity name="Project">
<one-to-many name="timesheetLineList" orphanRemoval="false" ref="com.axelor.apps.hr.db.TimesheetLine" title="Logged Time" mappedBy="project"/>
<decimal name="totalPlannedHrs" title="Total planned hours" />
<decimal name="totalRealHrs" title="Total real hours" />
<!-- Readonly in timesheet line editor -->
<boolean name="excludeTimesheetEditor" title="Exclude timesheet editor" />
</entity>
</domain-models>

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" ?>
<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="project" package="com.axelor.apps.project.db"/>
<entity name="ProjectPlanningTime" cacheable="true">
<date name="date" column="date_val" title="Date" required="true" />
<decimal name="plannedHours" title="Planned hours" />
<many-to-one name="user" ref="com.axelor.auth.db.User" title="User" column="user_id" required="true"/>
<many-to-one name="project" ref="com.axelor.apps.project.db.Project" title="Project" required="true"/>
<many-to-one name="task" ref="com.axelor.team.db.TeamTask" title="Team task" />
<integer name="timepercent" title="Time %" selection="project.task.progress.select"/>
<string name="description" title="Description" large="true" />
<many-to-one name="product" ref="com.axelor.apps.base.db.Product" title="Activity"/>
<boolean name="isIncludeInTurnoverForecast" title="Include in turnover forecast"/>
<time name="startTime" title="Start time"/>
<time name="endTime" title="End time"/>
<string name="fullName" namecolumn="true">
<![CDATA[
String fullName = "";
if(user != null && user.getName() != null) {
fullName += user.getName();
}
if (project != null && project.getCode() != null) {
fullName += "-" + project.getCode();
}
String dateStr = date.format(java.time.format.DateTimeFormatter.ofPattern("dd/MM/yyyy"));
if (!fullName.isEmpty()) {
fullName += "-" + dateStr;
}
else {
fullName = dateStr;
}
return fullName;
]]>
</string>
</entity>
</domain-models>

View File

@@ -0,0 +1,19 @@
<?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="base" package="com.axelor.apps.base.db"/>
<entity name="Sequence" lang="java">
<extra-code><![CDATA[
//SEQUENCE SELECT
public static final String EXPENSE = "expense";
]]></extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="TSTimer" cacheable="true">
<many-to-one name="user" title="User" ref="com.axelor.auth.db.User" readonly="true" column="user_id"/>
<many-to-one name="project" ref="com.axelor.apps.project.db.Project" title="Project"/>
<many-to-one name="product" ref="com.axelor.apps.base.db.Product" title="Activity" required="true"/>
<string name="comments" title="Comments" large="true"/>
<datetime name="startDateTime" title="Start Time" readonly="true"/>
<datetime name="timerStartDateT" title="Timer start date time" readonly="true"/>
<long name="duration" title="Duration" required="true"/>
<many-to-one name="timesheetLine" ref="com.axelor.apps.hr.db.TimesheetLine" title="Timesheet Line" readonly="true"/>
<integer name="statusSelect" title="Status Timer" default="2" selection="hr.timer.status.select" readonly="true"></integer>
<extra-code><![CDATA[
// STATUS SELECT
public static final int STATUS_START = 1;
public static final int STATUS_PAUSE = 2;
public static final int STATUS_STOP = 3;
]]></extra-code>
</entity>
</domain-models>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" ?>
<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="project" package="com.axelor.team.db"/>
<entity name="TeamTask">
<decimal name="totalPlannedHrs" title="Total planned hours" />
<decimal name="totalRealHrs" title="Total real hours" />
<one-to-many name="projectPlanningTimeList" title="Project planning time lines" ref="com.axelor.apps.project.db.ProjectPlanningTime" mappedBy="task"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,57 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="Timesheet" cacheable="true">
<date name="sentDate" title="Sent Date" readonly="true"/>
<integer name="statusSelect" title="Status" selection="hrs.timesheet.status.select" default="1" readonly="true"/>
<many-to-one name="user" ref="com.axelor.auth.db.User" title="User" column="user_id" required="true" readonly="true"/>
<one-to-many name="timesheetLineList" ref="com.axelor.apps.hr.db.TimesheetLine" title="Timesheet Lines" mappedBy="timesheet" orphanRemoval="true"/>
<date name="fromDate"/>
<date name="toDate"/>
<many-to-one name="company" ref="com.axelor.apps.base.db.Company"/>
<many-to-one name="validatedBy" ref="com.axelor.auth.db.User" title="Validated by" readonly="true"/>
<many-to-one name="refusedBy" ref="com.axelor.auth.db.User" title="Refused By" readonly="true"/>
<date name="validationDate" title="Validation Date" readonly="true" />
<date name="refusalDate" title="Refusal Date" readonly="true" />
<string name="groundForRefusal" title="Ground For Refusal" large="true"/>
<decimal name="periodTotal" title="Total on period (hours)"/>
<boolean name="showEditor" title="Show editor" />
<string name="timeLoggingPreferenceSelect" title="Time logging preference" selection="hr.time.logging.preference.select"/>
<string name="fullName" namecolumn="true" readonly="true">
<![CDATA[
if(this.getUser() != null && this.getCreatedOn() != null){
return this.getUser().getFullName()+" "+this.getCreatedOn().getDayOfMonth()+"/"+this.getCreatedOn().getMonthValue()
+"/"+this.getCreatedOn().getYear()+" "+this.getCreatedOn().getHour()+":"+this.getCreatedOn().getMinute();
}
else if (this.getUser() != null){
return this.getUser().getFullName()+" N°"+this.getId();
}
else{
return "N°"+this.getId();
}
]]>
</string>
<finder-method name="findByUserAndStatus" using="user,statusSelect"/>
<extra-code>
<![CDATA[
public static final int STATUS_DRAFT = 1;
public static final int STATUS_CONFIRMED = 2;
public static final int STATUS_VALIDATED = 3;
public static final int STATUS_REFUSED = 4;
public static final int STATUS_CANCELED = 5;
]]>
</extra-code>
<track>
<field name="statusSelect"/>
</track>
</entity>
</domain-models>

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="TimesheetLine" cacheable="true">
<integer name="sequence" title="Sequence" readonly="true"/>
<many-to-one name="project" ref="com.axelor.apps.project.db.Project" title="Project"/>
<many-to-one name="product" ref="com.axelor.apps.base.db.Product" title="Activity"/>
<many-to-one name="user" title="User" ref="com.axelor.auth.db.User" readonly="true" column="user_id"/>
<date name="date" column="date_val" required="true" />
<many-to-one name="timesheet" ref="com.axelor.apps.hr.db.Timesheet" title="Time Sheet" readonly="true"/>
<decimal name="hoursDuration" title="Duration"/>
<decimal name="duration" title="Duration"/>
<decimal name="durationForCustomer" title="Duration adjust for customer"/>
<string name="comments" large="true"/>
<boolean name="toInvoice"/>
<boolean name="invoiced" title="Invoiced" readonly="true"/>
<string name="fullName" namecolumn="true"></string>
<boolean name="enableEditor" title="Enable editor" nullable="true" />
<many-to-one name="projectPlanningTime" ref="com.axelor.apps.project.db.ProjectPlanningTime" />
<many-to-one name="teamTask" ref="com.axelor.team.db.TeamTask" title="Task" />
<unique-constraint columns="timesheet,project,product,date,enableEditor"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db" />
<entity name="TimesheetReminder" cacheable="true">
<many-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" title="Employee" />
<datetime name="emailSentDateT" title="Email sent date" />
<one-to-many name="timesheetReminderLineList" ref="com.axelor.apps.hr.db.TimesheetReminderLine" title="Reminder" mappedBy="timesheetReminder" />
</entity>
</domain-models>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db" />
<entity name="TimesheetReminderLine" cacheable="true">
<many-to-one name="timesheetReminder" ref="com.axelor.apps.hr.db.TimesheetReminder" title="Timesheet reminder" />
<date name="fromDate" title="From date" />
<date name="toDate" title="To date" />
<decimal name="missingHours" title="Missing hours" />
<decimal name="extraHours" title="Extra hours" />
<decimal name="requiredHours" title="Total required hours"/>
<decimal name="workHour" title="Work hours"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" ?>
<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="human-resource" package="com.axelor.apps.hr.db"/>
<entity name="TimesheetReport" cacheable="true">
<date name="fromDate" title="From Date"/>
<date name="toDate" title="To Date"/>
<many-to-many name="userSet" ref="com.axelor.auth.db.User" title="Users"/>
<integer name="typeSelect" title="Type" selection="hr.employee.timesheet.report.type.select"/>
<many-to-many name="reminderUserSet" ref="com.axelor.auth.db.User" title="User to be reminded"/>
</entity>
</domain-models>

View File

@@ -0,0 +1,18 @@
<?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="auth" package="com.axelor.auth.db"/>
<entity name="User" sequential="true" lang="java">
<one-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" title="Employee"/>
<track>
<field name="employee"/>
</track>
</entity>
</domain-models>