diff options
| author | Kevin Baptiste <kba@odoo.com> | 2019-05-29 12:57:35 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-06-26 06:56:17 +0000 |
| commit | 83aaea9e5ce92530875e4fca606a89fe423803ef (patch) | |
| tree | 91dd20e5ea2087d4ddf1daa3d1d954de3490517f /addons/website/static/src/js/content/website_root.js | |
| parent | 2f34aea5289c020a240b33d2c9767baca806d59b (diff) | |
[IMP] base: Add option on image widget to enable zoom
Purpose
=======
As the employee picture on a form view is often too small,
it should be possible to zoom on it like for products in eCommerce.
Specification
=============
Added new bool options on FieldBinaryImage: `zoom` and `background`.
`zoom` will call zoomOdoo.js and display a popup with the zoomed out
image.
`background` is used to either display the image as a div element with
a background-url (to be used e.g. in a kanban view) or as a standard
img element.
closes odoo/odoo#33839
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/website/static/src/js/content/website_root.js')
| -rw-r--r-- | addons/website/static/src/js/content/website_root.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/src/js/content/website_root.js b/addons/website/static/src/js/content/website_root.js index 612265124cd..4b61a33d779 100644 --- a/addons/website/static/src/js/content/website_root.js +++ b/addons/website/static/src/js/content/website_root.js @@ -4,7 +4,7 @@ odoo.define('website.root', function (require) { var core = require('web.core'); var Dialog = require('web.Dialog'); var publicRootData = require('web.public.root'); -require('website.content.zoomodoo'); +require("web.zoomodoo"); var _t = core._t; |
