[MIG] init 18.0

This commit is contained in:
Stéphan Sainléger
2026-01-16 16:25:10 +01:00
parent 243603069e
commit 0720f67a14
87 changed files with 0 additions and 3666 deletions

View File

@@ -1 +0,0 @@
from . import helpdesk_ticket

View File

@@ -1,12 +0,0 @@
from odoo import models, api, Command
class HelpdeskTicket(models.Model):
_inherit = "helpdesk.ticket"
@api.onchange("task_id")
def _onchange_task_id(self):
for record in self:
if record.timesheet_ids and record.task_id:
not_yet_invoiced_timesheet_ids = [t.id for t in record.timesheet_ids if not t.timesheet_invoice_id]
record.task_id.timesheet_ids = [Command.link(t_id) for t_id in not_yet_invoiced_timesheet_ids]