summaryrefslogtreecommitdiff
path: root/addons/theme_bootswatch/data/theme_bootswatch_data.xml
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2019-02-18 10:06:19 +0000
committerAurélien Warnon <awa@odoo.com>2019-02-19 07:07:02 +0000
commit916968058db05f52e3d6137a8567086a1314cb5c (patch)
tree23581d921234cef9fe637c55a75b7501c0a96226 /addons/theme_bootswatch/data/theme_bootswatch_data.xml
parentd56402a5471a1efbda92a1dd2babf8a7d0cd7de0 (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