Initial commit: Core packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:45 +02:00
commit 12c29a983b
9512 changed files with 8379910 additions and 0 deletions

View file

@ -0,0 +1,9 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_resource_calendar_user,resource.calendar.user,model_resource_calendar,base.group_user,1,0,0,0
access_resource_calendar_system,resource.calendar.system,model_resource_calendar,base.group_system,1,1,1,1
access_resource_calendar_attendance_user,resource.calendar.attendance.user,model_resource_calendar_attendance,base.group_user,1,0,0,0
access_resource_calendar_attendance_system,resource.calendar.attendance.system,model_resource_calendar_attendance,base.group_system,1,1,1,1
access_resource_resource,resource.resource,model_resource_resource,base.group_system,1,0,0,0
access_resource_resource_all,resource.resource all,model_resource_resource,base.group_user,1,0,0,0
access_resource_calendar_leaves_user,resource.calendar.leaves,model_resource_calendar_leaves,base.group_user,1,1,1,1
access_resource_calendar_leaves,resource.calendar.leaves,model_resource_calendar_leaves,base.group_system,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_resource_calendar_user resource.calendar.user model_resource_calendar base.group_user 1 0 0 0
3 access_resource_calendar_system resource.calendar.system model_resource_calendar base.group_system 1 1 1 1
4 access_resource_calendar_attendance_user resource.calendar.attendance.user model_resource_calendar_attendance base.group_user 1 0 0 0
5 access_resource_calendar_attendance_system resource.calendar.attendance.system model_resource_calendar_attendance base.group_system 1 1 1 1
6 access_resource_resource resource.resource model_resource_resource base.group_system 1 0 0 0
7 access_resource_resource_all resource.resource all model_resource_resource base.group_user 1 0 0 0
8 access_resource_calendar_leaves_user resource.calendar.leaves model_resource_calendar_leaves base.group_user 1 1 1 1
9 access_resource_calendar_leaves resource.calendar.leaves model_resource_calendar_leaves base.group_system 1 1 1 1

View file

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<record model="ir.rule" id="resource_calendar_leaves_rule_group_user_create">
<field name="name">resource.calendar.leaves: employee reads own or global</field>
<field name="model_id" ref="model_resource_calendar_leaves"/>
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
<field name="domain_force">['|', ('resource_id', '=', False), ('resource_id.user_id', 'in', [False, user.id])]</field>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_unlink" eval="False"/>
</record>
<record model="ir.rule" id="resource_calendar_leaves_rule_group_user_modify">
<field name="name">resource.calendar.leaves: employee modifies own</field>
<field name="model_id" ref="model_resource_calendar_leaves"/>
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
<field name="domain_force">[('resource_id', '!=', False), ('resource_id.user_id', 'in', [False, user.id])]</field>
<field name="perm_read" eval="False"/>
</record>
<record model="ir.rule" id="resource_calendar_leaves_rule_group_admin_modify">
<field name="name">resource.calendar.leaves: admin modifies global</field>
<field name="model_id" ref="model_resource_calendar_leaves"/>
<field name="groups" eval="[(4, ref('base.group_erp_manager'))]"/>
<field name="domain_force">[('resource_id', '=', False)]</field>
<field name="perm_read" eval="False"/>
</record>
<record id="resource_resource_multi_company" model="ir.rule">
<field name="name">resource.resource multi-company</field>
<field name="model_id" ref="model_resource_resource"/>
<field name="domain_force">[('company_id', 'in', company_ids + [False])]</field>
</record>
<record model="ir.rule" id="resource_calendar_leaves_rule_multi_company">
<field name="name">resource.calendar.leaves: multi-company rule</field>
<field name="model_id" ref="model_resource_calendar_leaves"/>
<field name="domain_force">[('company_id', 'in', company_ids + [False])]</field>
</record>
</odoo>