diff --git a/hr_timesheet_overtime_begin_end/__manifest__.py b/hr_timesheet_overtime_begin_end/__manifest__.py index ed42081..110f129 100644 --- a/hr_timesheet_overtime_begin_end/__manifest__.py +++ b/hr_timesheet_overtime_begin_end/__manifest__.py @@ -6,16 +6,16 @@ "name": "Timesheet - Overtime and begin/end hours compatibility", "summary": """ Make the two modules compatible.""", - "version": "16.0.1.0.0", + "version": "12.0.1.0.0", "category": "Human Resources", - "website": "https://github.com/coopiteasy/cie-timesheet", + "website": "https://coopiteasy.be", "author": "Coop IT Easy SC", "maintainers": ["carmenbianca"], "license": "AGPL-3", "application": False, "depends": [ "hr_timesheet_overtime", - "hr_timesheet_begin_end", + "hr_timesheet_activity_begin_end", ], "auto_install": True, } diff --git a/hr_timesheet_overtime_begin_end/tests/test_analytic_line.py b/hr_timesheet_overtime_begin_end/tests/test_analytic_line.py index 5d187ec..82e5461 100644 --- a/hr_timesheet_overtime_begin_end/tests/test_analytic_line.py +++ b/hr_timesheet_overtime_begin_end/tests/test_analytic_line.py @@ -2,10 +2,10 @@ # # SPDX-License-Identifier: AGPL-3.0-or-later -from odoo.tests.common import TransactionCase +from odoo.tests.common import SavepointCase -class TestAnalyticLine(TransactionCase): +class TestAnalyticLine(SavepointCase): @classmethod def setUpClass(cls): super().setUpClass() @@ -34,13 +34,6 @@ def base_line(self): def test_rate_applied(self): line = self.base_line() - line_record = self.env["account.analytic.line"].create(line) - self.assertEqual(line_record.unit_amount, 4.0) - - def test_rate_applied_after_edit(self): - line = self.base_line() - del line["time_start"] - del line["time_stop"] - line_record = self.env["account.analytic.line"].create(line) - line_record.write({"time_start": 10.0, "time_stop": 12.0}) + line_record = self.env["account.analytic.line"].new(line) + line_record.onchange_hours_start_stop() self.assertEqual(line_record.unit_amount, 4.0)