Files
odoo_source/addons/project/security/ir.model.access.csv
T
Yannick Tivisse 98675d3919 [IMP] project: Replace 'Cumulative Flow' by a fovorite filter in task report
This report is too advanced and/or complex to be a single menuitem. Furthermore the model was a mess and a horn of plenty for bugs.

The class ProjectTaskHistoryCumulative inherits from the class ProjectTaskHistory, and create a view based on the same model.The orginal class defines a compute field 'end_date' which calls a compute method '_compute_end_date' that will either make a simple assignment or a SQL request if the columns is always opened or folded.

As ProjectTaskHistoryCumulative is declare with '_auto=False' the compute method will try to write on this table, which is obviously wrong because we are trying to write on a view.

This leads to erors when trying to edit a project stage like:

OperationalError: cannot update view "project_task_history_cumulative"
DETAIL:  Views that do not select from a single table or view are not automatically updatable.
HINT:  To enable updating the view, provide an INSTEAD OF UPDATE trigger or an unconditional ON UPDATE DO INSTEAD rule.

or when trying to delete a column which already contains some tasks.

So we removed this these models and view and replaced them by a simple favorite filter in the Tasks Reports
2016-09-02 08:46:33 +02:00

2.2 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_project_projectproject.projectmodel_project_projectproject.group_project_user1000
3access_project_project_managerproject.projectmodel_project_projectproject.group_project_manager1111
4access_account_analytic_account_useraccount.analytic.accountanalytic.model_account_analytic_accountproject.group_project_user1000
5access_account_analytic_account_manageraccount.analytic.accountanalytic.model_account_analytic_accountproject.group_project_manager1111
6access_project_task_type_userproject.task.type.usermodel_project_task_typebase.group_user1000
7access_project_task_type_project_userproject.task.type.project.usermodel_project_task_typeproject.group_project_user1000
8access_project_task_type_managerproject.task.type managermodel_project_task_typeproject.group_project_manager1111
9access_project_taskproject.taskmodel_project_taskproject.group_project_user1111
10access_report_project_task_userreport.project.task.usermodel_report_project_task_userproject.group_project_manager1111
11access_partner_task userbase.res.partner userbase.model_res_partnerproject.group_project_user1000
12access_task_on_partnerproject.task on partnersmodel_project_taskbase.group_user1000
13access_project_on_partnerproject.project on partnersmodel_project_projectbase.group_user1000
14access_account_analytic_line_projectaccount.analytic.line projectanalytic.model_account_analytic_lineproject.group_project_manager1111
15access_resource_calendarproject.resource_calendar userresource.model_resource_calendarproject.group_project_user1000
16access_resource_calendar_attendanceproject.resource_calendar_attendance userresource.model_resource_calendar_attendanceproject.group_project_user1000
17access_resource_calendar_leaves_userresource.calendar.leaves userresource.model_resource_calendar_leavesproject.group_project_user1111
18access_project_tags_allproject.project_tags_allmodel_project_tags1000
19access_project_tags_managerproject.project_tags_managermodel_project_tagsproject.group_project_manager1111
20access_mail_aliasmail.aliasmail.model_mail_aliasproject.group_project_manager1111