diff --git a/beesdoo_shift_attendance/__manifest__.py b/beesdoo_shift_attendance/__manifest__.py index e40ec55..61c2e09 100644 --- a/beesdoo_shift_attendance/__manifest__.py +++ b/beesdoo_shift_attendance/__manifest__.py @@ -40,8 +40,6 @@ "views/attendance_sheet.xml", ], 'demo': [ - "demo/tasks.xml", - "demo/workers.xml", "demo/users.xml", ] } diff --git a/beesdoo_shift_attendance/tests/test_beesdoo_shift.py b/beesdoo_shift_attendance/tests/test_beesdoo_shift.py index 0e4943a..e4b4656 100644 --- a/beesdoo_shift_attendance/tests/test_beesdoo_shift.py +++ b/beesdoo_shift_attendance/tests/test_beesdoo_shift.py @@ -67,12 +67,12 @@ class TestBeesdooShift(TransactionCase): ) self.task_template_1 = self.env.ref( - "beesdoo_shift_attendance" - ".beesdoo_shift_attendance_task_template_1_demo" + "beesdoo_worker_status" + ".beesdoo_shift_task_template_1_demo" ) self.task_template_2 = self.env.ref( - "beesdoo_shift_attendance" - ".beesdoo_shift_attendance_task_template_2_demo" + "beesdoo_worker_status" + ".beesdoo_shift_task_template_2_demo" ) # Set time in and out of generation interval parameter diff --git a/beesdoo_worker_status/__manifest__.py b/beesdoo_worker_status/__manifest__.py index e64be3a..0163280 100644 --- a/beesdoo_worker_status/__manifest__.py +++ b/beesdoo_worker_status/__manifest__.py @@ -23,5 +23,7 @@ "views/res_partner.xml", ], 'demo': [ + "demo/workers.xml", + "demo/tasks.xml", ] } diff --git a/beesdoo_shift_attendance/demo/tasks.xml b/beesdoo_worker_status/demo/tasks.xml similarity index 88% rename from beesdoo_shift_attendance/demo/tasks.xml rename to beesdoo_worker_status/demo/tasks.xml index 064a610..351312b 100644 --- a/beesdoo_shift_attendance/demo/tasks.xml +++ b/beesdoo_worker_status/demo/tasks.xml @@ -5,7 +5,7 @@ --> - + A_LUN_7:00-9:30 @@ -17,7 +17,7 @@ - + A_MAR_12:00-14:30 @@ -30,7 +30,7 @@ - + A_VEN_7:00-9:30 diff --git a/beesdoo_shift_attendance/demo/workers.xml b/beesdoo_worker_status/demo/workers.xml similarity index 100% rename from beesdoo_shift_attendance/demo/workers.xml rename to beesdoo_worker_status/demo/workers.xml diff --git a/beesdoo_worker_status/tests/test_beesdoo_shift.py b/beesdoo_worker_status/tests/test_beesdoo_shift.py index 08af349..58e200a 100644 --- a/beesdoo_worker_status/tests/test_beesdoo_shift.py +++ b/beesdoo_worker_status/tests/test_beesdoo_shift.py @@ -14,28 +14,9 @@ class TestBeesdooShift(TransactionCase): super(TestBeesdooShift, self).setUp() self.shift_model = self.env["beesdoo.shift.shift"] self.shift_template_model = self.env["beesdoo.shift.template"] - self.attendance_sheet_model = self.env["beesdoo.shift.sheet"] - self.attendance_sheet_shift_model = self.env[ - "beesdoo.shift.sheet.shift" - ] - self.shift_expected_model = self.env["beesdoo.shift.sheet.expected"] - self.shift_added_model = self.env["beesdoo.shift.sheet.added"] - self.task_type_default_id = self.env["ir.config_parameter"].sudo().get_param( - "beesdoo_shift.task_type_default_id" - ) self.current_time = datetime.now() self.user_admin = self.env.ref("base.user_root") - self.user_generic = self.env.ref( - "beesdoo_base.beesdoo_shift_user_1_demo" - ) - self.user_permanent = self.env.ref( - "beesdoo_base.beesdoo_shift_user_2_demo" - ) - - self.setting_wizard = self.env["beesdoo.shift.config.settings"].sudo( - self.user_admin - ) self.worker_regular_1 = self.env.ref( "beesdoo_base.res_partner_cooperator_6_demo" @@ -67,10 +48,10 @@ class TestBeesdooShift(TransactionCase): ) self.task_template_1 = self.env.ref( - "beesdoo_shift.beesdoo_shift_task_template_1_demo" + "beesdoo_worker_status.beesdoo_shift_task_template_1_demo" ) self.task_template_2 = self.env.ref( - "beesdoo_shift.beesdoo_shift_task_template_2_demo" + "beesdoo_worker_status.beesdoo_shift_task_template_2_demo" ) # Set time in and out of generation interval parameter @@ -116,7 +97,7 @@ class TestBeesdooShift(TransactionCase): "replaced_id": self.worker_regular_2.id, } ) - future_shift_regular = self.shift_model.create( + self.future_shift_regular = self.shift_model.create( { "task_template_id": self.task_template_2.id, "task_type_id": self.task_type_1.id,