This commit is contained in:
cerenX9
2026-07-21 18:54:09 +03:00
parent 03b97ca431
commit b0ccf8bb85
11 changed files with 5948 additions and 1032 deletions

View File

@@ -2,6 +2,7 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_mymach_fleet_contract_user,contract_user,model_mymach_fleet_contract,group_mymach_fleet_user,1,0,0,0
access_mymach_fleet_contract_manager,contract_manager,model_mymach_fleet_contract,group_mymach_fleet_manager,1,1,1,1
access_mymach_fleet_maintenance_cost_manager,maintenance_cost_manager,model_mymach_fleet_maintenance_cost,group_mymach_fleet_manager,1,1,1,1
access_mymach_fleet_security_log_user,log_user,model_mymach_fleet_security_log,group_mymach_fleet_user,1,1,0,0
access_mymach_fleet_security_log_manager,log_manager,model_mymach_fleet_security_log,group_mymach_fleet_manager,1,1,1,1
access_mymach_fleet_route_wizard_user,route_wizard_user,model_mymach_fleet_route_exception_wizard,group_mymach_fleet_user,1,1,1,1
access_mymach_fleet_reservation_user,reservation_user,model_mymach_fleet_reservation,group_mymach_fleet_user,1,1,1,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_mymach_fleet_contract_user contract_user model_mymach_fleet_contract group_mymach_fleet_user 1 0 0 0
3 access_mymach_fleet_contract_manager contract_manager model_mymach_fleet_contract group_mymach_fleet_manager 1 1 1 1
4 access_mymach_fleet_maintenance_cost_manager maintenance_cost_manager model_mymach_fleet_maintenance_cost group_mymach_fleet_manager 1 1 1 1
5 access_mymach_fleet_security_log_user log_user model_mymach_fleet_security_log group_mymach_fleet_user 1 1 0 0
6 access_mymach_fleet_security_log_manager log_manager model_mymach_fleet_security_log group_mymach_fleet_manager 1 1 1 1
7 access_mymach_fleet_route_wizard_user route_wizard_user model_mymach_fleet_route_exception_wizard group_mymach_fleet_user 1 1 1 1
8 access_mymach_fleet_reservation_user reservation_user model_mymach_fleet_reservation group_mymach_fleet_user 1 1 1 0

View File

@@ -55,5 +55,19 @@
<field name="domain_force">[(1, '=', 1)]</field>
<field name="groups" eval="[(4, ref('group_mymach_fleet_manager'))]"/>
</record>
<!-- RECORD RULES (Güvenlik / Rota Sapma Logları) -->
<record id="rule_mymach_fleet_security_log_user" model="ir.rule">
<field name="name">Sürücüler kendi rota sapma uyarılarını görür</field>
<field name="model_id" ref="model_mymach_fleet_security_log"/>
<field name="domain_force">[('vehicle_id.driver_id', '=', user.partner_id.id)]</field>
<field name="groups" eval="[(4, ref('group_mymach_fleet_user'))]"/>
</record>
<record id="rule_mymach_fleet_security_log_manager" model="ir.rule">
<field name="name">Yöneticiler tüm güvenlik ihlallerini görür</field>
<field name="model_id" ref="model_mymach_fleet_security_log"/>
<field name="domain_force">[(1, '=', 1)]</field>
<field name="groups" eval="[(4, ref('group_mymach_fleet_manager'))]"/>
</record>
</data>
</odoo>