Skip to content
Permalink
Browse files

[IMP] sale_timesheet: show timesheets based on ordered and delivered …

…invoicing
  • Loading branch information...
pka-odoo committed Mar 22, 2019
1 parent 610814e commit 395094d5d426cdaa2951fb09981eda04f81ed675
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/sale_timesheet/controllers/portal.py
@@ -17,7 +17,7 @@ class CustomerPortal(CustomerPortal):

def _prepare_portal_layout_values(self):
values = super(CustomerPortal, self)._prepare_portal_layout_values()
values['timesheet_count'] = request.env['account.analytic.line'].search_count([('timesheet_invoice_id', '!=', False)])
values['timesheet_count'] = request.env['account.analytic.line'].search_count([('so_line', '!=', False)])
return values

def _invoice_get_page_view_values(self, invoice, access_token, **kw):
@@ -32,7 +32,7 @@ def _invoice_get_page_view_values(self, invoice, access_token, **kw):
def portal_my_timesheets(self, page=1, sortby=None, filterby=None, search=None, search_in='all', groupby='project', **kw):
values = self._prepare_portal_layout_values()

domain = [('timesheet_invoice_id', '!=', False)]
domain = [('so_line', '!=', False)]
searchbar_sortings = {
'date': {'label': _('Newest'), 'order': 'date desc'},
'name': {'label': _('Name'), 'order': 'name'},

0 comments on commit 395094d

Please sign in to comment.
You can’t perform that action at this time.