diff --git a/addons/sale_timesheet/controllers/portal.py b/addons/sale_timesheet/controllers/portal.py index df46e5c45fe..c0abd48f955 100644 --- a/addons/sale_timesheet/controllers/portal.py +++ b/addons/sale_timesheet/controllers/portal.py @@ -25,23 +25,6 @@ class PortalAccount(portal.PortalAccount): values['is_uom_day'] = request.env['account.analytic.line'].sudo()._is_timesheet_encode_uom_day() return values - -class CustomerPortal(portal.CustomerPortal): - def _order_get_page_view_values(self, order, access_token, **kwargs): - values = super(CustomerPortal, self)._order_get_page_view_values(order, access_token, **kwargs) - domain = request.env['account.analytic.line']._timesheet_get_portal_domain() - domain = expression.AND([ - domain, - request.env['account.analytic.line']._timesheet_get_sale_domain( - order.mapped('order_line'), - order.invoice_ids - ) - ]) - values['timesheets'] = request.env['account.analytic.line'].sudo().search(domain) - values['is_uom_day'] = request.env['account.analytic.line'].sudo()._is_timesheet_encode_uom_day() - return values - - class SaleTimesheetCustomerPortal(TimesheetCustomerPortal): def _get_searchbar_inputs(self):