Initial commit: Hr packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:50 +02:00
commit 62531cd146
2820 changed files with 1432848 additions and 0 deletions

View file

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<record id="hr_timesheet_attendance_report_restricted_company_rule" model="ir.rule">
<field name="name">Restricted Timesheet attendance Record: multi-company</field>
<field name="model_id" ref="model_hr_timesheet_attendance_report"/>
<field name="domain_force"> [('company_id', 'in', company_ids + [False])]</field>
</record>
<record id="hr_timesheet_attendance_report_rule_user" model="ir.rule">
<field name="name">Timesheet attendance Report: User</field>
<field name="model_id" ref="model_hr_timesheet_attendance_report"/>
<field name="domain_force">[('user_id', '=', user.id)]</field>
<field name="groups" eval="[(4, ref('hr_timesheet.group_hr_timesheet_user'))]"/>
</record>
<record id="hr_timesheet_attendance_report_rule_approver" model="ir.rule">
<field name="name">Timesheet attendance Report: Approver</field>
<field name="model_id" ref="model_hr_timesheet_attendance_report"/>
<field name="domain_force">[(1, '=', 1)]</field>
<field name="groups" eval="[(4, ref('hr_timesheet.group_hr_timesheet_approver'))]"/>
</record>
<record id="hr_timesheet_attendance_report_rule_manager" model="ir.rule">
<field name="name">Timesheet attendance Report: Administrator</field>
<field name="model_id" ref="model_hr_timesheet_attendance_report"/>
<field name="domain_force">[(1, '=', 1)]</field>
<field name="groups" eval="[(4, ref('hr_timesheet.group_timesheet_manager'))]"/>
</record>
</odoo>

View file

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_hr_timesheet_attendance_report,access_hr_timesheet_attendance_report,model_hr_timesheet_attendance_report,hr_timesheet.group_hr_timesheet_user,1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_hr_timesheet_attendance_report access_hr_timesheet_attendance_report model_hr_timesheet_attendance_report hr_timesheet.group_hr_timesheet_user 1 0 0 0