summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/underscore/underscore.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-02-23 15:27:45 +0100
committerDenis Ledoux <dle@odoo.com>2015-02-23 15:39:07 +0100
commit4928db70adfc2f0811c5fcef3fdefc36565c0228 (patch)
tree693de95a2c43e19e73345fa00949514fcf97a9b1 /addons/web/static/lib/underscore/underscore.js
parent25429656c7d9e229e55158f9cf8e15e2f84e4caf (diff)
[FIX] account: partner form buttons access rights
When having account installed, but having as only access right "Contacts creation", it wasn't possible to display the partner form. Setting the "groups" on the button itself has as effect to hide the button, but not to prevent its value computation. If you did not had the access rights required to compute the buttons values, it leaded to security issues. Put the "groups" on the view instead prevent the button to be loaded, and its value to be computed. It therefore avoids both a useless computation (computing the value of a hidden button is not really useful), and prevent any access rights warnings. Besides, 3 different groups were needed to display the three buttons: - account.group_account_invoice - account.group_account_user - analytic.group_analytic_accounting Not having one of these tree groups could lead to security warnings. We therefore split this view into three sub-views, with each one a group set (and a button) opw-628668
Diffstat (limited to 'addons/web/static/lib/underscore/underscore.js')
0 files changed, 0 insertions, 0 deletions