[REM] portal_project: move ALL the things - move portal access rights from portal_project and website_project_issue to project and project_issue - move portal menuitems back to their respective module - remove public visibility of projects - adapt demo data to have a 'Demo Portal' project - add correct access rights for account.analytic.line for portal users - small view tweak (do not display 'timesheet' tab if one can't see antyhing in it anyway)
20 lines
1.1 KiB
XML
20 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data noupdate="1">
|
|
|
|
<record id="portal_issue_sheet_rule" model="ir.rule">
|
|
<field name="name">Project/Issue Timesheets: frontend access</field>
|
|
<field name="model_id" ref="analytic.model_account_analytic_line"/>
|
|
<field name="domain_force">['|',
|
|
'&',
|
|
('issue_id.project_id.privacy_visibility', '=', 'portal'),
|
|
('issue_id.message_follower_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),
|
|
'&',
|
|
('issue_id.project_id.privacy_visibility', '=', 'followers'),
|
|
('issue_id.message_follower_ids', 'in', [user.partner_id.id]),
|
|
]</field>
|
|
<field name="groups" eval="[(4, ref('base.group_portal'))]"/>
|
|
</record>
|
|
</data>
|
|
</openerp>
|