Restricted access journals
Created originally on Bitbucket by Anonymous
Some journals (e.g payroll journals) should only be accessible to accounting managers. Today, this can only be done through record rules by "hardcoding" the list of journals inside the domain (see account_numergy). We should find a more generic and user-friendly way to implement it.
The list of restricted journals could be defined in the General Settings menu. The record rule's domain could use a stored functional field that reads this list and returns True if the journal's code is in it.