[FIX] sale_timesheet: remove dead code
Introduced with https://github.com/odoo/odoo/commit/009bcc59febb2aefec6ffde3427b01cb08d1b9db#diff-01680392de45e95bdb6995b7594cb37f94684bff0caebfe0a058ca65b7604bccR62 The template code has been removed in https://github.com/odoo/odoo/commit/2d565e859af5bc23fae4268faae0a4f509bcca8b# Furthermore, the base method was removed during https://github.com/odoo/odoo/commit/573ed74c121c1572b3fab6f9553ed7f93f7b3f99#diff-1c3a19ae29764ce81fb0785553c9efb50277e8ec1dbe4535d6e542edecdfba3eL36 Since the feature was removed and the code is dead, it can be safely removed. closes odoo/odoo#70581 X-original-commit: afa1825db1b1511e91e693a0429f391d50d7f8b7 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user