diff --git a/hr_timesheet_sheet/README.rst b/hr_timesheet_sheet/README.rst index 6f71f99b39..afe493c0de 100644 --- a/hr_timesheet_sheet/README.rst +++ b/hr_timesheet_sheet/README.rst @@ -7,7 +7,7 @@ HR Timesheet Sheet !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:8242f7cce2e51dfba2a10874b1293dc612d63cab543264d158495cdb4a6f1f95 + !! source digest: sha256:45c06b6aa4783b7ffdc6edde1ec07b498407fffbf6ecc15c668fc770c5669a3e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/hr_timesheet_sheet/__manifest__.py b/hr_timesheet_sheet/__manifest__.py index e2ced42dfe..1adb8533d1 100644 --- a/hr_timesheet_sheet/__manifest__.py +++ b/hr_timesheet_sheet/__manifest__.py @@ -6,7 +6,7 @@ { "name": "HR Timesheet Sheet", - "version": "16.0.1.1.3", + "version": "16.0.1.1.4", "category": "Human Resources", "sequence": 80, "summary": "Timesheet Sheets, Activities", diff --git a/hr_timesheet_sheet/models/hr_timesheet_sheet.py b/hr_timesheet_sheet/models/hr_timesheet_sheet.py index b494798e11..5b301f3df4 100644 --- a/hr_timesheet_sheet/models/hr_timesheet_sheet.py +++ b/hr_timesheet_sheet/models/hr_timesheet_sheet.py @@ -677,9 +677,8 @@ def add_line(self): if existing_unique_ids: self.delete_empty_lines(False) if frozenset(new_line_unique_id.items()) not in existing_unique_ids: - self.timesheet_ids |= self.env["account.analytic.line"]._sheet_create( - values - ) + new_line = self.env["account.analytic.line"]._sheet_create(values) + self.write({"timesheet_ids": [(4, new_line.id)]}) def link_timesheets_to_sheet(self, timesheets): self.ensure_one() diff --git a/hr_timesheet_sheet/static/description/index.html b/hr_timesheet_sheet/static/description/index.html index b97ed815d5..5da0bfbf27 100644 --- a/hr_timesheet_sheet/static/description/index.html +++ b/hr_timesheet_sheet/static/description/index.html @@ -367,7 +367,7 @@
This module supplies a new screen enabling you to manage your work encoding