diff options
| author | Aurélien Warnon <awa@odoo.com> | 2019-02-18 10:06:19 +0000 |
|---|---|---|
| committer | Aurélien Warnon <awa@odoo.com> | 2019-02-19 07:07:02 +0000 |
| commit | 916968058db05f52e3d6137a8567086a1314cb5c (patch) | |
| tree | 23581d921234cef9fe637c55a75b7501c0a96226 /addons/theme_bootswatch/data/theme_bootswatch_data.xml | |
| parent | d56402a5471a1efbda92a1dd2babf8a7d0cd7de0 (diff) | |
[IMP] website: add a field to handle publish rights for publish mixin
Purpose
=======
The "publish/unpublish" widget is always shown on the frontend as long as the user
is a website_publisher and the object has a "website_published" field.
In some modules (namely website_slides) we need to handle a more refined level of access.
This commit adds a "can_publish" computed field that can be overridden to add some additional
access rules to the object and hide the widget if the user doesn't have the rights to
publish/unpublish.
Diffstat (limited to 'addons/theme_bootswatch/data/theme_bootswatch_data.xml')
0 files changed, 0 insertions, 0 deletions
