summaryrefslogtreecommitdiff
path: root/addons/note/models
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2016-09-15 11:22:53 +0200
committerThibault Delavallée <tde@odoo.com>2016-09-23 10:01:04 +0200
commita9bd9ab16087142e27076c63ef60a0467f0bcfad (patch)
treefc6fb894cdb686ef50efd66a2ab8200ab98f8049 /addons/note/models
parent033fc508f4b6330cb1a8d25cfd75c103c648edbb (diff)
[FIX][IMP] various: unsudo mail/view controller and get_access_action
mail/view controller is a generic controller that redirects the user to a given view, depending on the record and the user. Users may be redirected to the backend form view, or to a website view. This is done notably by calling get_access_action method that gives the action to perform (act_window or url). Previously this method was called using SUPERUSER. However it was therefore impossible to know who the user was. This method is now called using the current user. Various overrides of get_access_action have been updated to add some logic and access rights check directly in the method allowing more fine-grain behavior of the access action.
Diffstat (limited to 'addons/note/models')
0 files changed, 0 insertions, 0 deletions