From e2b3bf6fd7f64d3b7709aeb4cc058682e40098b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Lechalup=C3=A9?= Date: Wed, 12 Jun 2019 18:44:10 +0200 Subject: [PATCH] [IMP] Fixed with context bug. --- project_timesheet_matrix/models/project_project.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/project_timesheet_matrix/models/project_project.py b/project_timesheet_matrix/models/project_project.py index a838b46..e59e97f 100644 --- a/project_timesheet_matrix/models/project_project.py +++ b/project_timesheet_matrix/models/project_project.py @@ -4,9 +4,8 @@ from odoo import models, fields, api class ProjectProject(models.Model): _inherit = "project.project" - @api.model + @api.multi def open_timesheets_matrix(self): - import pdb; pdb.set_trace() wiz = self.env['project.timesheet.matrix.wiz'].create({}) return { 'name': 'Edit timesheets',