flectra/addons/hr_contract/data/hr_contract_data.xml
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

57 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<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>
</odoo>