[IMP]project_working_time_task_portal:do not show exclude from sale order timesheet lines in timesheets portal
This commit is contained in:
@@ -1 +1 @@
|
||||
from . import billable_time
|
||||
from . import billable_time, account_analytic_line
|
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
|
||||
from odoo import models
|
||||
from odoo.osv import expression
|
||||
|
||||
class AccountAnalyticLine(models.Model):
|
||||
_inherit = 'account.analytic.line'
|
||||
|
||||
def _timesheet_get_portal_domain(self):
|
||||
domain = super()._timesheet_get_portal_domain()
|
||||
return expression.AND([domain, [('exclude_from_sale_order', '=', False)]])
|
Reference in New Issue
Block a user