Skip to content

odoo/technical-training

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Odoo 12.0 - Technical Training

=======

Access Rights

Goal

The goal of this module is to learn how to handle security restrictions. The learner will be able to

  • restrict the access to specific model, data, fields
  • hide part of the views or menus
  • run priviledge code

Requirements

Problem 1: Citadel (openacademy)

The future maesters before getting any chains will require to pass a lot of classes, as they can register to session on their own, they must be able to access the information about the course and session. They can access the information about the maesters as well but the citadel. The citadel has drastic rules about students accessing information about other students. A long time ago, the maesters sent a student to the wall as an example after accessing information about a southern student. This includes who attends which session.

The archmaesters creates the courses and assign the maester responsible. The maesters can manage only their courses and like every assignment of every maester in Westeros, they cannot unassign themself from the course. Some older students can supervise some session for some maesters. Obviously the students just obey and apply but the maesters can modify the session.

Problem 2: Trust No One

The paranoid king sees ennemies everywhere wanting to steal his crown. He keeps much information about the state of the realm (economy, army, citizen) and while it needs to share some with his advisors, he does not want once to have too much knowledge that could be a threat to his throne.

Consider who should be able to access and/or modify which information and add some restrictions on different levels.

Resources

Reference

Code Sample

Releases

No releases published

Packages

No packages published

Languages