19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:00 +01:00
parent a1137a1456
commit e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions

View file

@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="1">
<record model="ir.module.category" id="base.module_category_services_timesheets">
<field name="description">Helps you manage the timesheets.</field>
<record model="res.groups.privilege" id="res_groups_privilege_timesheets">
<field name="name">Timesheets</field>
<field name="sequence">13</field>
<field name="category_id" ref="base.module_category_services"/>
</record>
<record id="group_hr_timesheet_user" model="res.groups">
<field name="name">User: own timesheets only</field>
<field name="category_id" ref="base.module_category_services_timesheets"/>
<field name="sequence">10</field>
<field name="privilege_id" ref="res_groups_privilege_timesheets"/>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
<field name="user_ids" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>
<record id="group_hr_timesheet_approver" model="res.groups">
<field name="name">User: all timesheets</field>
<field name="category_id" ref="base.module_category_services_timesheets"/>
<field name="sequence">20</field>
<field name="privilege_id" ref="res_groups_privilege_timesheets"/>
<field name="implied_ids" eval="[(4, ref('hr_timesheet.group_hr_timesheet_user'))]"/>
</record>
<record id="group_timesheet_manager" model="res.groups">
<field name="name">Administrator</field>
<field name="category_id" ref="base.module_category_services_timesheets"/>
<field name="sequence">30</field>
<field name="privilege_id" ref="res_groups_privilege_timesheets"/>
<field name="implied_ids" eval="[(4, ref('hr_timesheet.group_hr_timesheet_approver')), (4, ref('hr.group_hr_user'))]"/>
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>
<record id="base.default_user" model="res.users">
<field name="groups_id" eval="[(4,ref('group_timesheet_manager'))]"/>
<field name="user_ids" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>
<record id="timesheet_line_rule_portal_user" model="ir.rule">
@ -36,10 +36,8 @@
<field name="active">0</field>
<field name="domain_force">[
('project_id', '!=', False),
'|',
('project_id.message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),
('task_id.message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),
('project_id.privacy_visibility', '=', 'portal'),
('message_partner_ids', 'child_of', [user.partner_id.commercial_partner_id.id]),
('project_id.privacy_visibility', 'in', ['invited_users', 'portal']),
('project_id.collaborator_ids.partner_id', 'in', [user.partner_id.id]),
]</field>
<field name="perm_read" eval="True"/>
@ -56,9 +54,9 @@
('user_id', '=', user.id),
('project_id', '!=', False),
'|', '|',
('project_id.privacy_visibility', '!=', 'followers'),
('project_id.message_partner_ids', 'in', [user.partner_id.id]),
('task_id.message_partner_ids', 'in', [user.partner_id.id])
('project_id.privacy_visibility', 'in', ['employees', 'portal']),
('partner_id', '=', user.partner_id.id),
('message_partner_ids', 'in', [user.partner_id.id])
]</field>
<field name="groups" eval="[(4, ref('group_hr_timesheet_user'))]"/>
</record>
@ -68,9 +66,10 @@
<field name="model_id" ref="analytic.model_account_analytic_line" />
<field name="domain_force">[
('project_id', '!=', False),
'|',
('project_id.privacy_visibility', '!=', 'followers'),
('project_id.message_partner_ids', 'in', [user.partner_id.id])
'|', '|',
('project_id.privacy_visibility', 'in', ['employees', 'portal']),
('message_partner_ids', 'in', [user.partner_id.id]),
('partner_id', '=', user.partner_id.id),
]</field>
<field name="groups" eval="[(4, ref('hr_timesheet.group_hr_timesheet_approver'))]" />
</record>
@ -92,15 +91,23 @@
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
</record>
<record id="timesheet_analysis_report_department_manager" model="ir.rule">
<field name="name">Timesheets Analysis Report user</field>
<field name="model_id" ref="model_timesheets_analysis_report"/>
<field name="domain_force">[
('has_department_manager_access', '=', True),
]</field>
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
</record>
<record id="timesheet_analysis_report_user" model="ir.rule">
<field name="name">Timesheets Analysis Report user</field>
<field name="model_id" ref="model_timesheets_analysis_report"/>
<field name="domain_force">[
('user_id', '=', user.id),
'|', '|',
('project_id.privacy_visibility', '!=', 'followers'),
('project_id.message_partner_ids', 'in', [user.partner_id.id]),
('task_id.message_partner_ids', 'in', [user.partner_id.id])
'|',
('project_id.privacy_visibility', 'in', ['employees', 'portal']),
('message_partner_ids', 'in', [user.partner_id.id])
]</field>
<field name="groups" eval="[(4, ref('group_hr_timesheet_user'))]"/>
</record>
@ -110,7 +117,7 @@
<field name="model_id" ref="model_timesheets_analysis_report"/>
<field name="domain_force">[
'|',
('project_id.privacy_visibility', '!=', 'followers'),
('project_id.privacy_visibility', 'in', ['employees', 'portal']),
('project_id.message_partner_ids', 'in', [user.partner_id.id])
]</field>
<field name="groups" eval="[(4, ref('group_hr_timesheet_approver'))]"/>

View file

@ -3,6 +3,6 @@ access_account_analytic_line_user,analytic.account.analytic.line.timesheet.user,
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
access_project_task,project.task.timesheet.user,model_project_task,hr_timesheet.group_hr_timesheet_user,1,1,0,0
access_timesheets_analysis_report_manager,timesheets.analysis.report,model_timesheets_analysis_report,hr_timesheet.group_timesheet_manager,1,1,1,1
access_timesheets_analysis_report_user,timesheets.analysis.report,model_timesheets_analysis_report,hr_timesheet.group_hr_timesheet_user,1,0,1,0
access_timesheets_analysis_report,timesheets.analysis.report,model_timesheets_analysis_report,base.group_user,1,0,0,0
access_hr_employee_delete_wizard,hr.employee.delete.wizard,model_hr_employee_delete_wizard,hr.group_hr_user,1,1,1,0
access_account_analytic_line_calendar_employee,account.analytic.line.calendar.employee.timesheet.user,model_account_analytic_line_calendar_employee,hr_timesheet.group_hr_timesheet_user,1,1,1,1

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
3 access_account_analytic_user analytic.account.analytic.timesheet.user analytic.model_account_analytic_account hr_timesheet.group_hr_timesheet_user 1 1 0 0
4 access_uom_uom_hr_timesheet uom.uom.timesheet.user uom.model_uom_uom hr_timesheet.group_hr_timesheet_user 1 0 0 0
5 access_project_project project.project.timesheet.user model_project_project hr_timesheet.group_hr_timesheet_user 1 0 0 0
6 access_project_task access_timesheets_analysis_report project.task.timesheet.user timesheets.analysis.report model_project_task model_timesheets_analysis_report hr_timesheet.group_hr_timesheet_user base.group_user 1 1 0 0 0
7 access_timesheets_analysis_report_manager access_hr_employee_delete_wizard timesheets.analysis.report hr.employee.delete.wizard model_timesheets_analysis_report model_hr_employee_delete_wizard hr_timesheet.group_timesheet_manager hr.group_hr_user 1 1 1 1 0
8 access_timesheets_analysis_report_user access_account_analytic_line_calendar_employee timesheets.analysis.report account.analytic.line.calendar.employee.timesheet.user model_timesheets_analysis_report model_account_analytic_line_calendar_employee hr_timesheet.group_hr_timesheet_user 1 0 1 1 0 1