Rémy Taymans
5 years ago
7 changed files with 67 additions and 140 deletions
-
2beesdoo_shift/__manifest__.py
-
84beesdoo_shift/demo/cooperators.xml
-
39beesdoo_shift/demo/templates.xml
-
3beesdoo_shift_attendance/__manifest__.py
-
46beesdoo_shift_attendance/demo/tasks.xml
-
12beesdoo_shift_attendance/demo/workers.xml
-
21beesdoo_shift_attendance/tests/test_beesdoo_shift.py
@ -1,84 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- |
|||
Copyright 2019 Coop IT Easy |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
--> |
|||
<odoo> |
|||
<record id="res_partner_cooperator_1_demo" model="res.partner"> |
|||
<field name="name">Fernand Peso</field> |
|||
<field name="customer" eval="True"/> |
|||
<field name="is_company" eval="False"/> |
|||
<field name="email">fernand_peso@demo.net</field> |
|||
<field name="street">Avenue des Bas-de-Callanques, 15</field> |
|||
<field name="city">Etterbeek</field> |
|||
<field name="zip">1040</field> |
|||
<field name="country_id" ref="base.be"/> |
|||
<field name="working_mode">regular</field> |
|||
<field name="is_worker" eval="True" /> |
|||
</record> |
|||
|
|||
<record id="res_partner_cooperator_2_demo" model="res.partner"> |
|||
<field name="name">Dupont Dupont</field> |
|||
<field name="customer" eval="True"/> |
|||
<field name="is_company" eval="False"/> |
|||
<field name="email">d_dupont@demo.net</field> |
|||
<field name="street">Rue des sables, 20</field> |
|||
<field name="city">Bruxelles</field> |
|||
<field name="zip">10000</field> |
|||
<field name="country_id" ref="base.be"/> |
|||
<field name="working_mode">irregular</field> |
|||
<field name="is_worker" eval="True" /> |
|||
</record> |
|||
|
|||
<record id="res_partner_cooperator_3_demo" model="res.partner"> |
|||
<field name="name">Ronan Le Gall</field> |
|||
<field name="customer" eval="True"/> |
|||
<field name="is_company" eval="False"/> |
|||
<field name="email">ronan_gall@demo.net</field> |
|||
<field name="street">Rue des pecheurs, 23</field> |
|||
<field name="city">Landudec</field> |
|||
<field name="zip">29710</field> |
|||
<field name="country_id" ref="base.fr"/> |
|||
<field name="working_mode">regular</field> |
|||
<field name="is_worker" eval="True" /> |
|||
</record> |
|||
|
|||
<record id="res_partner_cooperator_4_demo" model="res.partner"> |
|||
<field name="name">Elouan Bees</field> |
|||
<field name="customer" eval="True"/> |
|||
<field name="is_company" eval="False"/> |
|||
<field name="email">elouan_bees@demo.net</field> |
|||
<field name="street">Rue Wéry, 15</field> |
|||
<field name="city">Ixelles</field> |
|||
<field name="zip">1050</field> |
|||
<field name="country_id" ref="base.be"/> |
|||
<field name="working_mode">irregular</field> |
|||
<field name="is_worker" eval="True" /> |
|||
</record> |
|||
|
|||
<record id="res_partner_cooperator_5_demo" model="res.partner"> |
|||
<field name="name">Anne de Marchalo</field> |
|||
<field name="customer" eval="True"/> |
|||
<field name="is_company" eval="False"/> |
|||
<field name="email">anne_marchalo@demo.net</field> |
|||
<field name="street">Rue du Wels, 6</field> |
|||
<field name="city">Nantes</field> |
|||
<field name="zip">44000</field> |
|||
<field name="country_id" ref="base.fr"/> |
|||
<field name="working_mode">regular</field> |
|||
<field name="is_worker" eval="True" /> |
|||
</record> |
|||
|
|||
<record id="res_partner_cooperator_6_demo" model="res.partner"> |
|||
<field name="name">Jean Beaumont</field> |
|||
<field name="customer" eval="True"/> |
|||
<field name="is_company" eval="False"/> |
|||
<field name="email">jean_beaumont@demo.net</field> |
|||
<field name="street">Rue de la Jungle, 8</field> |
|||
<field name="city">St-Gilles</field> |
|||
<field name="zip">1060</field> |
|||
<field name="country_id" ref="base.be"/> |
|||
<field name="working_mode">regular</field> |
|||
<field name="is_worker" eval="True" /> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,46 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- |
|||
Copyright 2019 Coop IT Easy |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
--> |
|||
<odoo> |
|||
|
|||
<record id="beesdoo_shift_attendance_task_template_1_demo" model="beesdoo.shift.template"> |
|||
<field name="name">A_LUN_7:00-9:30</field> |
|||
<field name="planning_id" ref="beesdoo_shift.beesdoo_shift_planning_1_demo" /> |
|||
<field name="day_nb_id" ref="beesdoo_shift.beesdoo_shift_daynumber_1_demo" /> |
|||
<field name="task_type_id" ref="beesdoo_shift.beesdoo_shift_task_type_3_demo" /> |
|||
<field name="start_time">7</field> |
|||
<field name="end_time">9.5</field> |
|||
<field name="duration">2.5</field> |
|||
<field name="worker_nb">12</field> |
|||
<field name="worker_ids" eval="[(6, 0, [ref('beesdoo_base.res_partner_cooperator_1_demo')])]"/> |
|||
</record> |
|||
|
|||
<record id="beesdoo_shift_attendance_task_template_2_demo" model="beesdoo.shift.template"> |
|||
<field name="name">A_MAR_12:00-14:30</field> |
|||
<field name="planning_id" ref="beesdoo_shift.beesdoo_shift_planning_1_demo" /> |
|||
<field name="day_nb_id" ref="beesdoo_shift.beesdoo_shift_daynumber_2_demo" /> |
|||
<field name="task_type_id" ref="beesdoo_shift.beesdoo_shift_task_type_2_demo" /> |
|||
<field name="start_time">12</field> |
|||
<field name="end_time">14.5</field> |
|||
<field name="duration">2.5</field> |
|||
<field name="worker_nb">9</field> |
|||
<!-- WARNING: issue, worker not registered in demo --> |
|||
<field name="worker_ids" eval="[(6, 0, [ref('beesdoo_base.res_partner_cooperator_3_demo')])]"/> |
|||
</record> |
|||
|
|||
<record id="beesdoo_shift_attendance_task_template_3_demo" model="beesdoo.shift.template"> |
|||
<field name="name">A_VEN_7:00-9:30</field> |
|||
<field name="planning_id" ref="beesdoo_shift.beesdoo_shift_planning_1_demo" /> |
|||
<field name="day_nb_id" ref="beesdoo_shift.beesdoo_shift_daynumber_5_demo" /> |
|||
<field name="task_type_id" ref="beesdoo_shift.beesdoo_shift_task_type_1_demo" /> |
|||
<field name="start_time">7</field> |
|||
<field name="end_time">9.5</field> |
|||
<field name="duration">2.5</field> |
|||
<field name="worker_nb">7</field> |
|||
<!-- WARNING: issue, worker not registered in demo --> |
|||
<field name="worker_ids" eval="[(6, 0, [ref('beesdoo_base.res_partner_cooperator_6_demo')])]"/> |
|||
</record> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue