All in One Preview
An eye button on image fields, file fields, attachment lists and many2one values: files open in a lightbox and records show a small card, in form, list and kanban views and on the portal.
| Odoo | 16.0, 17.0, 18.0, 19.0, 20.0 |
| Editions | Community, Enterprise |
| Works with | Base settings and Web only (works on every installed app) |
| Licence | OPL-1, 42 EUR |
| Tests | 10 automated, run on every version |
| Module | web_ |
The situation
A manager approving a sick leave clicks medical_certificate.pdf and the browser downloads it. A salesperson on order S00016 wants the phone number of Gemini Furniture, opens the customer, then has to find the way back to the order. A product photo on a kanban card is 64 pixels wide. Each check costs a download or a lost screen.
With this module the same screens get a small eye. The certificate and the photo next to it open in a lightbox with next and previous, the product photo opens full size with zoom and rotate, and the eye next to Gemini Furniture shows a card with its picture, email, phone, city and country, with an Open button. Nothing in your views changes: the eye comes with the standard widgets.
What it adds
Getting started
Open Apps, clear the Apps filter, search for All in One Preview and click Activate. It only needs Odoo's base settings and web client, so it works on the screens of every app you install.
Apps › web_preview_all_in_one › Activate
Nothing is required: every switch is on after installation. To choose which fields the many2one card shows for a model, open Card Fields per Model, pick the model, add its fields in the order you want and choose the picture field or No Image.
Settings › General Settings › All in One Preview
Hover a picture or an attachment and click the eye, or click the eye next to a file or a many2one value. In the lightbox use the arrow keys for the next file, + and - to zoom on pictures and Esc to close. Ctrl-click a portal link to download it the usual way.
Fine print
Log
Need a preview for office files or another widget?
Tell us the screen, the file types and your Odoo version.
Email odoo.expert.111@gmail.com
Also by Awins
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module