summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriyanka Kakadiya <pka@odoo.com>2019-05-10 11:06:09 +0000
committerPriyanka Kakadiya <pka@odoo.com>2019-06-14 04:49:21 +0000
commit562997b2bc0b55f92177952fff3160c762b3e6bb (patch)
tree8e45a4b35bf6e5cd146c6cfa7c0cda2cfc95ec91
parent3cd7ed07a29c89ddf193796c20a812b9bf21e284 (diff)
[IMP] hr_timesheet: remove timesheet rule and access right for portal
Purpose of the commit is to clean the current portal right of timesheet(analytic account line) and analytic account(no more ir.rule). the idea is to remove ir.rule since the domain will be difficult with ir.rule extension mecanism. Moreover, as this is "technical" data, we will use 'sudo' controller. as we don't want to customize what is shown in portal. End user is free to create its own ir.rule to connect odoo in xmlrpc he will be the only responsible for that. task-1932488
-rw-r--r--addons/hr_timesheet/security/hr_timesheet_security.xml15
-rw-r--r--addons/hr_timesheet/security/ir.model.access.csv1
2 files changed, 0 insertions, 16 deletions
diff --git a/addons/hr_timesheet/security/hr_timesheet_security.xml b/addons/hr_timesheet/security/hr_timesheet_security.xml
index ac2d422a43e..64033b482ec 100644
--- a/addons/hr_timesheet/security/hr_timesheet_security.xml
+++ b/addons/hr_timesheet/security/hr_timesheet_security.xml
@@ -58,21 +58,6 @@
<field name="perm_read" eval="1"/>
</record>
- <record id="timesheet_rule_portal" model="ir.rule">
- <field name="name">Project/Task Timesheets: frontend access</field>
- <field name="model_id" ref="analytic.model_account_analytic_line"/>
- <field name="domain_force">[
- '|',
- '&amp;',
- ('task_id.project_id.privacy_visibility', '=', 'portal'),
- ('task_id.project_id.message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),
- '&amp;',
- ('task_id.project_id.privacy_visibility', '=', 'portal'),
- ('task_id.message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),
- ]</field>
- <field name="groups" eval="[(4, ref('base.group_portal'))]"/>
- </record>
-
</data>
</odoo>
diff --git a/addons/hr_timesheet/security/ir.model.access.csv b/addons/hr_timesheet/security/ir.model.access.csv
index 96723f93935..cb11fb119f7 100644
--- a/addons/hr_timesheet/security/ir.model.access.csv
+++ b/addons/hr_timesheet/security/ir.model.access.csv
@@ -1,6 +1,5 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_account_analytic_line_user,analytic.account.analytic.line.timesheet.user,analytic.model_account_analytic_line,hr_timesheet.group_hr_timesheet_user,1,1,1,1
-access_account_analytic_line_portal,access_timesheets_portal,analytic.model_account_analytic_line,base.group_portal,1,0,0,0
access_account_analytic_user,analytic.account.analytic.timesheet.user,analytic.model_account_analytic_account,hr_timesheet.group_hr_timesheet_user,1,1,0,0
access_uom_uom_hr_timesheet,uom.uom.timesheet.user,uom.model_uom_uom,hr_timesheet.group_hr_timesheet_user,1,0,0,0
access_project_project,project.project.timesheet.user,model_project_project,hr_timesheet.group_hr_timesheet_user,1,0,0,0