[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
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m28s
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "project_working_time_task_portal",
|
"name": "project_working_time_task_portal",
|
||||||
"version": "16.0.1.0.4",
|
"version": "16.0.1.0.5",
|
||||||
"author": "Elabore",
|
"author": "Elabore",
|
||||||
"website": "https://elabore.coop",
|
"website": "https://elabore.coop",
|
||||||
"maintainer": "Boris Gallet",
|
"maintainer": "Boris Gallet",
|
||||||
|
|||||||
@@ -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()
|
||||||
Reference in New Issue
Block a user