HomeModulesWebsiteWeb Widgets Pack - UI
Web Widgets Pack - UI
WebsiteAuraOdoo Verified

Web Widgets Pack - UI

Five interface widgets: relative_time, phone_intl, image_crop, range_slider and dual_list.

Technical Specifications & Compatibility

Technical Module Name
Supported Odoo Versions
v19.0
License
LGPL-3.
Deployment Support
Odoo OnlineOdoo.shOn Premise
Lines of Code
1772 lines (Python / XML / JS)

Overview & Description

Aura Odoo Tech Supports:CommunityEnterprise UI Widgets Version 20.0.1.0.0: five interface widgets for forms Richer controls for the form you already have. A phone box that knows its country, a range with two handles, a two-pane picker for long lists, a crop tool for photos, and "3 hours ago" with the exact time on hover. Each one is a widget attribute on a field. ✓Phone numbers stored as +33612345678 and shown as +33 6 12 34 56 78 ✓One slider writes both ends of a range ✓Crop and rotate a photo before it is saved Built onInternational phoneTwo-handle rangeImage cropDual listDepends on Web only 5 widgets in one module 22 options between them 51 countries in the phone table 1 dependency: Odoo Web why you will like it Controls the standard form does not have A phone number is a text box, a photo is whatever was uploaded, and a range is two separate numbers. These widgets fix that on the field itself. Time the way people say it 3 hours ago, yesterday, in 2 hours. The exact date and time appear when you hover, and the label keeps itself current while the form is open. Old dates show as dates Set cutoff_days and anything older shows its date instead of "14 months ago", with the age on hover. Phone numbers stored cleanly Type 06 98 76 54 32 for France and it is stored as +33698765432, the form an API or a duplicate check wants, and shown as +33 6 98 76 54 32. Paste and the country follows Paste a number that starts with +44 and the country selector moves to GB and the digits are grouped the way that country writes them. Too short or too long says so A French number with too few digits gets "Too short for FR" beside the box, and too many digits gets "Too long for FR". One range, two fields Two handles write two fields. Dragging the low handle past the high one parks it against it, so a drag never flips. Arrow keys nudge, a click on the bar moves the nearer handle, and both numbers stay editable. Crop, rotate, downscale Choose 1:1, 4:3, 3:2, 16:9, 3:4 or 9:16, move or pull the frame, turn the photo a quarter at a time, and the result is capped at max_width before it is saved. An empty field offers an upload button. A picklist for long lists All items on the left, the chosen ones on the right, a search on each side. Add all shown adds only what the search is showing, and a double-click moves one row. Ordinary field widgets Set widget="..." on a field in any view. Nothing to inherit and no server code, and the widgets do not call any outside service. five widgets Add one to a field Each widget is used the same way: a widget attribute on the field, and options if you want to change how it behaves. relative_time datetimedate A time written as 3 hours ago or in 2 hours, with the exact timestamp on hover. It reads a time in either direction and refreshes itself. <field name="last_contact" widget="relative_time" options="{'show_icon': true, 'cutoff_days': 365}"/> Options: live (turn the automatic refresh off), show_icon (a clock in front of the text), cutoff_days (past this age show the date itself). phone_intl char A country selector, the dial code and a number box that groups digits as you type. Stores E.164 by default. <field name="mobile" widget="phone_intl" options="{'default_country': 'FR'}"/> Options: default_country (an ISO code, US if not set), country_field (a field that holds the ISO code to start from), store (e164 or national). image_crop binary Crop, rotate and downscale an image before it is saved. An empty field shows an Upload a picture button, and a field that holds an image shows Crop, Replace and Remove. <field name="photo" widget="image_crop" options="{'height': 320, 'max_width': 1600}"/> Options: height (of the picture area in pixels), max_width (the result is scaled down to this), quality (for JPEG, lower gives a smaller file), format (image/jpeg by default, or image/png). range_slider floatinteger Two handles that write two fields. The widget goes on the low field and high_field names the high one, which must also be in the view. <field name="budget_max" invisible="1"/> <field name="budget_min" widget="range_slider" options="{'high_field': 'budget_max', 'min': 0, 'max': 1000000, 'step': 10000, 'min_gap': 10000, 'unit': '€'}"/> Options: high_field (required), min, max, step, min_gap (how close the handles may get), unit (shown after each number), digits (decimals). dual_list many2manyone2many The two-pane picklist with a search on each side. Right when somebody has to pick 40 of 300 items. <field name="country_ids" widget="dual_list" options="{'height': 260, 'available_label': 'All countries', 'selected_label': 'Served'}"/> Options: display_field (the field shown on each row), limit (how many records to load), height (of the panes in pixels), available_label and selected_label (the two headings). see it in action Real screens, real demo data Every picture below is a capture of the widgets running in Odoo 20, on the demo record plus five extra sample records. The flags in the phone selector are drawn with a flag font, because the capture machine runs Windows, which has none. The demo form A relative time, a phone number, a two-handle range and a photo you can crop, on one record. The countries picker is on the second tab. The same widgets in a list 3 hours ago, 6 minutes ago, yesterday, 2 weeks ago, last year, and in 2 hours in a different colour. Phone numbers are grouped the way each country writes them and link to tel:, and each range shows as a small bar. In a list the widgets are display-only. The exact time is one hover away The label says 3 hours ago. Hover it to see the exact date and time. Past cutoff_days the date is shown instead and the hover says how long ago. Paste a number and the country follows Pasting +44 7911 123456 moved the selector to GB and grouped the digits. The number is stored as +447911123456. Too short says so Three digits typed for GB: the box turns amber and says Too short for GB. Too many digits says Too long for GB. The handles do not swap Dragging the low handle past the high one parks it one gap short, here 440000 against 450000. The label follows while you drag, and both fields are written when you let go. Or type the numbers The two numbers under the slider are editable and the handles follow. The arrow keys nudge a handle by one step, and a click on the bar moves the nearer handle. An empty photo field offers an upload Upload a picture opens the file chooser. A field that already holds an image shows Crop, Replace and Remove instead. Nothing is written until you save the form. Crop with a locked ratio A 1:1 frame on a 3:2 photo is square in real pixels. Move it, pull a corner or pick another ratio: Free, 1:1, 4:3, 3:2, 16:9, 3:4 or 9:16. Turn the photo, crop what you see Rotate right turns the picture itself, so the frame you pull is over the part you are looking at. Rotate left turns it back, and Reset goes back to the original. The crop replaces the original Apply writes the square back to the field as a JPEG. Save the form and that is what is stored. A picklist for long lists All countries on the left, the ones served on the right, each side with its own search box and count. Search and mark Typing united narrows the left list and its count. A click marks a row and ctrl-click marks several. Add all shown Add all shown moved the three matching countries across and left the rest of the list alone. A double-click moves one row. how it works Three steps to a better field 1 Add the widget Put widget="phone_intl", or any of the five names, on a field in a form or list view. 2 Add options if you need them Where a widget needs a second field, name it in the options: high_field for the range, country_field for the phone. 3 Save as usual The widgets change the value on the form and the normal Save button writes it. setup Configure in two minutes Use it on your own model ✓For phone_intl use a Char field, for relative_time a Datetime field ✓For range_slider use two Float or Integer fields: the widget goes on the low one, and high_field names the other, which must be in the view ✓For dual_list use a many2many field, and for image_crop a Binary field ✓Edit the view and set widget="..." and options on the field ✓Upgrade your module and open a record Try the demo first ✓Turn on developer mode ✓Open Settings → Technical → Widgets Demo (UI) ✓Open UI widgets demo and try the phone, the slider and the Countries tab ✓The demo record has no photo, so its Photo tab offers Upload a picture; pick any image and it can be cropped good to know Questions Which Odoo versions and editions? Odoo 20.0, Community and Enterprise (the widgets were also exercised with Enterprise's web client installed). It depends only on the Web module. Can image_crop upload a photo? Yes. An empty field shows an Upload a picture button and a field that holds an image shows Replace. The file is read in the browser and written to the field when you save the form. Is phone_intl a full phone number library? No. It has a built-in table of 51 countries with the dial code, the usual length and the way digits are grouped. It stores E.164 by default, and you can store the national format instead. Why do I see letters instead of flags in the country selector? The selector uses flag emoji, and some systems, Windows for one, draw them as two letters. Nothing needs configuring. The captures on this page use a flag font so the selector looks the way it does on macOS or Linux. Is it tested? The module ships 9 server tests (defaults, access rights, the demo views) and 50 browser unit tests that mount every widget and drive it: typing, pasting, dragging, arrow keys, double-clicks, saving. Does it load anything from the internet? No. There is no CDN and no external script, and the widgets make no network calls of their own. Do the handles of the range slider ever cross? No. Dragging one past the other parks it against its neighbour, and min_gap keeps a distance between them. Are my changes saved right away? They change the record on the form and are saved with the Save button, like any other edit. License LGPL-3. Developed by Aura Odoo Tech, https://www.auraodoo.tech. support We are here to help Written and maintained by Aura Odoo Tech. Email Questions, problems or a setting you need — write to us directly. odooaura@gmail.com Website More Odoo modules, documentation and customisation services. www.auraodoo.tech

Key Capabilities & Features

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.

Screenshots & Previews

16 images available
Web Widgets Pack - UI screenshot 1
Expand Preview
Web Widgets Pack - UI screenshot 2
Expand Preview
Web Widgets Pack - UI screenshot 3
Expand Preview
Web Widgets Pack - UI screenshot 4
Expand Preview
Web Widgets Pack - UI screenshot 5
Expand Preview
Web Widgets Pack - UI screenshot 6
Expand Preview
Web Widgets Pack - UI screenshot 7
Expand Preview
Web Widgets Pack - UI screenshot 8
Expand Preview
Web Widgets Pack - UI screenshot 9
Expand Preview
Web Widgets Pack - UI screenshot 10
Expand Preview
Web Widgets Pack - UI screenshot 11
Expand Preview
Web Widgets Pack - UI screenshot 12
Expand Preview
Web Widgets Pack - UI screenshot 13
Expand Preview
Web Widgets Pack - UI screenshot 14
Expand Preview
Web Widgets Pack - UI screenshot 15
Expand Preview
Web Widgets Pack - UI screenshot 16
Expand Preview
The AuraOdoo Quality Guarantee
100% Tested

Verified with Odoo 17, 18, and 19 test pipelines for stability and no conflicts.

Clean Architecture

Built according to official Odoo guidelines and PEP 8 standards with zero bloat.

Dedicated Support

Free installation assistance and quick bug turnaround from our team.