shift_template.xml 1.18 KB
Newer Older
François C. committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?xml version="1.0"?>
<!--
    Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>)
    @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
    License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->

<odoo>

    <record model="shift.template" id="standard_template_1">
        <field name="user_ids" eval="[(4, [ref('squadleader_1')])]" />
        <field name="shift_type_id" eval="ref('coop_shift.shift_type')"/>
        <field name="start_datetime" eval="'%s-%s-%s 09:00:00' %(datetime.now().year, datetime.now().month, datetime.now().day)"/>
        <field name="end_datetime" eval="'%s-%s-%s 12:00:00' %(datetime.now().year, datetime.now().month, datetime.now().day)"/>
    </record>

    <record model="shift.template" id="standard_template_2">
        <field name="user_ids" eval="[(4, [ref('squadleader_2')])]" />
        <field name="shift_type_id" eval="ref('coop_shift.shift_type')"/>
        <field name="start_datetime" eval="'%s-%s-%s 12:00:00' %(datetime.now().year, datetime.now().month, datetime.now().day)"/>
        <field name="end_datetime" eval="'%s-%s-%s 15:00:00' %(datetime.now().year, datetime.now().month, datetime.now().day)"/>
    </record>

</odoo>