[IMP] project_working_time_task_portal : change compute api depends of billable_effective_hours
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m28s

This commit is contained in:
2025-11-19 13:48:57 +01:00
parent 93bb87b12e
commit 439909ce41
2 changed files with 10 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "project_working_time_task_portal",
"version": "16.0.1.0.4",
"version": "16.0.1.0.5",
"author": "Elabore",
"website": "https://elabore.coop",
"maintainer": "Boris Gallet",

View File

@@ -0,0 +1,9 @@
from odoo import SUPERUSER_ID, api
def migrate(cr, version):
env = api.Environment(cr, SUPERUSER_ID, {})
tasks = env["project.task"].search([("stage_id.fold", "=", False)])
tasks._compute_billable_effective_hours()
cr.commit()