RFC rule and cache refactoring

I have created Remove user and employee from rule context and cache (!802) · Merge requests · Tryton / Tryton · GitLab which is a major refactoring for the cache and rule management.
The goal is to have a better usage of the cache by reducing the variability of the keys.

The major changes are:

  • the removal of the user, employee and employees from the rule context (with few exception depending on the model).
  • the removal of the user as key of the cache depending on the context.

As this is a major and complex change that may have implication on the access rights, I would like to have enough eyes looking at it.
I divided into more than 20 small commits so it is easier to review.


PS: I triggered a full run of tests but there are still few failures that are not related to the change.