Skip to content

Commit

Permalink
Fix #711
Browse files Browse the repository at this point in the history
  • Loading branch information
maisim committed Sep 10, 2024
1 parent aaf0b28 commit b060cab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hr_timesheet_sheet/models/hr_timesheet_sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b060cab

Please sign in to comment.