[FIX] sale_timesheet: force timesheet and not analytic line in overview

This commit is contained in:
Jérome Maes
2017-09-29 21:53:30 +02:00
parent 07c14ba8cc
commit 5ff52bba32
@@ -3,6 +3,7 @@
from odoo import http, _
from odoo.http import request
from odoo.osv import expression
from odoo.tools import float_round
@@ -11,6 +12,7 @@ class SaleTimesheetController(http.Controller):
@http.route('/timesheet/plan', type='json', auth="user")
def plan(self, domain):
domain = expression.AND([domain, [('project_id', '!=', False)]]) # force timesheet and not AAL
values = self._prepare_plan_values(domain)
view = request.env.ref('sale_timesheet.timesheet_plan')
return {