updated condition

This commit is contained in:
prakash 2021-11-09 20:20:10 +05:30
commit ff79153a0f
29 changed files with 3 additions and 3 deletions

0
hspl_user_simulation/LICENSE Normal file → Executable file
View File

0
hspl_user_simulation/README.md Normal file → Executable file
View File

0
hspl_user_simulation/__init__.py Normal file → Executable file
View File

0
hspl_user_simulation/__manifest__.py Normal file → Executable file
View File

0
hspl_user_simulation/models/__init__.py Normal file → Executable file
View File

0
hspl_user_simulation/models/models.py Normal file → Executable file
View File

0
hspl_user_simulation/security/groups.xml Normal file → Executable file
View File

0
hspl_user_simulation/security/ir.model.access.csv Normal file → Executable file
View File

View File

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

0
hspl_user_simulation/static/description/icon.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

0
hspl_user_simulation/static/description/index.html Normal file → Executable file
View File

View File

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

View File

Before

Width:  |  Height:  |  Size: 246 KiB

After

Width:  |  Height:  |  Size: 246 KiB

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

0
hspl_user_simulation/static/src/js/user_simulation.js Normal file → Executable file
View File

0
hspl_user_simulation/static/src/xml/widget.xml Normal file → Executable file
View File

0
hspl_user_simulation/views/templates.xml Normal file → Executable file
View File

0
hspl_user_simulation/views/views.xml Normal file → Executable file
View File

0
hspl_user_simulation/wizard/__init__.py Normal file → Executable file
View File

0
hspl_user_simulation/wizard/user_simulation_wizard.py Normal file → Executable file
View File

View File

View File

@ -5,7 +5,7 @@ from odoo import fields, models, tools, api
from datetime import datetime, time, timedelta
from odoo.tools.float_utils import float_round
class ProjectTimelineReport(models.Model):
class ProjectTimesheetReport(models.Model):
_name = "project.timesheet.report"
_description = "Project Timesheet Report"
@ -39,14 +39,14 @@ class ProjectTimelineReport(models.Model):
if order and isinstance(order, str) and order=='timestamp DESC':
#order = order.replace("timestamp ", "start_datetime ")
order = "start_datetime desc, end_datetime asc"
res = super(ProjectTimelineReport, self).search_read(domain, fields, offset, limit, order)
res = super(ProjectTimesheetReport, self).search_read(domain, fields, offset, limit, order)
return res
@api.model
def export_data(self, fields):
index = range(len(fields))
fields_name = dict(zip(fields, index))
res = super(ProjectTimelineReport, self).export_data(fields)
res = super(ProjectTimesheetReport, self).export_data(fields)
for index, val in enumerate(res['datas']):
if fields_name.get('start_date') is not None:
tdateindex = fields_name.get('start_date')