2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
<data noupdate="1">
|
|
|
|
|
|
|
|
<!-- Contract Types -->
|
|
|
|
<record id="hr_contract_type_emp" model="hr.contract.type">
|
|
|
|
<field name="name">Employee</field>
|
|
|
|
<field name="sequence">5</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="hr_contract_type_wrkr" model="hr.contract.type">
|
|
|
|
<field name="name">Worker</field>
|
|
|
|
<field name="sequence">10</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="hr_contract_type_sub" model="hr.contract.type">
|
|
|
|
<field name="name">Subcontractor</field>
|
|
|
|
<field name="sequence">15</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Contract-related subtypes for messaging / Chatter -->
|
|
|
|
<record id="mt_contract_pending" model="mail.message.subtype">
|
|
|
|
<field name="name">To Renew</field>
|
|
|
|
<field name="res_model">hr.contract</field>
|
|
|
|
<field name="default" eval="True"/>
|
|
|
|
<field name="description">Contract about to expire</field>
|
|
|
|
</record>
|
|
|
|
<record id="mt_contract_close" model="mail.message.subtype">
|
|
|
|
<field name="name">Expired</field>
|
|
|
|
<field name="res_model">hr.contract</field>
|
|
|
|
<field name="default" eval="False"/>
|
|
|
|
<field name="description">Contract expired</field>
|
|
|
|
</record>
|
|
|
|
<!-- Department-related (parent) subtypes for messaging / Chatter -->
|
|
|
|
<record id="mt_department_contract_pending" model="mail.message.subtype">
|
|
|
|
<field name="name">Contract to Renew</field>
|
|
|
|
<field name="res_model">hr.department</field>
|
|
|
|
<field name="default" eval="False"/>
|
|
|
|
<field name="parent_id" eval="ref('mt_contract_pending')"/>
|
|
|
|
<field name="relation_field">department_id</field>
|
|
|
|
<field name="description">Contract about to expire</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Expired Soon -->
|
|
|
|
<record id="ir_cron_data_contract_update_state" model="ir.cron">
|
|
|
|
<field name="name">HR Contract: update state</field>
|
|
|
|
<field name="model_id" ref="model_hr_contract"/>
|
|
|
|
<field name="type">ir.actions.server</field>
|
|
|
|
<field name="state">code</field>
|
|
|
|
<field name="code">model.update_state()</field>
|
|
|
|
<field name="interval_number">1</field>
|
|
|
|
<field name="interval_type">days</field>
|
|
|
|
<field name="numbercall">-1</field>
|
|
|
|
</record>
|
|
|
|
</data>
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|