HomeModulesWebsiteWeb Widgets Pack - Input
Web Widgets Pack - Input
WebsiteAuraOdoo Verified

Web Widgets Pack - Input

Five data-entry widgets: input_mask, chips, unit_input, file_dropzone and schedule_grid.

Technical Specifications & Compatibility

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

Overview & Description

Aura Odoo Tech Supports:CommunityEnterprise Widgets Input Version 20.0.1.0.0: five widgets for getting data in Fill in forms faster, with fewer mistakes. Five widgets for the fields people type into. A mask that formats as you type. Tags in a plain text field. A number that converts between units. A drop zone for files. And a weekly grid you paint with the mouse. ✓Type a card number or a date and the spaces and slashes appear by themselves ✓Change the unit and the number is converted, not just relabelled ✓Drop files on the field, or paint the hours you are free Built on Char, float and attachment fields Click, type, drag and drop Depends on Web only 5 widgets: input_mask, chips, unit_input, file_dropzone, schedule_grid 8 ready-made mask presets 6 unit families: length, area, weight, volume, temperature, data 0 files loaded from the internet why you will like it Less typing, cleaner data Each widget sits on a field you already have. What is saved is plain text or a plain number, so filters, reports and your own code keep working. Formats as you type Give a field a pattern such as 9999/9999. The slash is added for you, and a character that does not fit the pattern is refused. The cursor stays put Fix a digit in the middle of a card number and the cursor stays next to it. It does not jump to the end. Tags in a plain text field Keep a list such as urgent, billing, review in one char field. No extra model is needed. A word keeps the same colour on every record. Paste a list, get the tags Paste words separated by commas or one per line and each one becomes a tag. Repeats are ignored, and you can set a maximum. Converts, not just relabels Switch a living area from square metres to square feet and 120 becomes 1291.67. The number stored in the record does not change. Drop files on the field Drag files onto the field or click to choose them. They are stored as ordinary attachments of the record. Previews, sizes and a clear refusal Images show as thumbnails, other files show their type, and each one shows its size. A file of the wrong type is refused with a message. Paint the week Drag across a weekly grid to mark opening hours or availability. Click a day or a time to switch the whole line. Saved in a form you can read The mask can save the characters only. Units are saved in one unit. The weekly grid saves only the selected slots, so changing its hours never breaks older records. one attribute each Add it to a field Put the widget on a field in your form view and set the options you need. The snippets below are ready to paste. input_mask char Formats what is typed. 9 is a digit, A is a letter, * is either, and anything else is a literal that is inserted for you. Eight presets are built in. <field name="reference" widget="input_mask" options="{'mask': '9999/9999'}"/> Options: mask (a pattern, or a preset: date, time, card, iban, phone_us, ssn_us, vat_eu, postcode_uk), store (masked keeps the separators, raw saves the characters only), show_placeholder (show the pattern in an empty box). The field's own placeholder attribute replaces the pattern hint. chips chartext Tags in a plain char field. Enter or the separator ends a tag, Backspace in an empty box removes the last one, and pasting a list adds them all. <field name="keywords" widget="chips" options="{'max': 8}"/> Options: separator (default a comma), unique (ignore repeats, default true), max (most tags allowed), colorize (colour each tag from its text, default true). unit_input floatinteger A number with a unit selector. Changing the unit converts the number. The field stores one unit and a second char field remembers the unit each record was entered in. <field name="living_area" widget="unit_input" options="{'dimension': 'area', 'store_unit': 'm2', 'unit_field': 'living_area_unit', 'units': 'm2,sqft,ha,acre'}"/> Options: dimension (length, area, weight, volume, temperature or data), store_unit (the unit the number is saved in), unit_field (a char field that remembers the unit), units (which units to offer, in your order), digits (decimal places, default 2). file_dropzone many2many Drag and drop for attachments, with thumbnails. It builds on the standard many2many_binary field, so files are uploaded the same way and produce the same attachment records. <field name="document_ids" widget="file_dropzone" nolabel="1" options="{'columns': 5, 'accepted_file_extensions': '.pdf,.png,.jpg'}"/> Options: columns (default 4), show_size (default true), and the options of many2many_binary such as accepted_file_extensions and number_of_files. schedule_grid chartextjson A clickable grid of days and time slots for opening hours, availability or delivery windows. Drag to paint a block, click a day or a time to switch a whole line. <field name="availability" widget="schedule_grid" nolabel="1" options="{'start': '08:00', 'end': '18:00', 'step': 60, 'cell_size': 30}"/> Options: start and end (the hours shown), step (slot length in minutes), days (for example mon,tue,wed,thu,fri), cell_size (pixels), show_total (the total under the grid, default true). see it in action Real screens, real demo data Every picture below is a capture of the widgets running in Odoo 19, with a few extra sample records, sample files and alternative form layouts added to the demo data to show the options. All five on one form The demo record uses every widget. The Documents tab holds the drop zone and the Availability tab holds the weekly grid. The mask fills itself in Type 20241 and the reference reads 2024/1. Type 411111 and the card reads 4111 11. An unfinished value shows how many characters are in, out of how many are needed. Presets for common formats Set mask to date, time, card, iban, phone_us, ssn_us, vat_eu or postcode_uk and the format is ready. The box is wide enough for the full value. Tags on a plain text field Each word is a chip with its own colour and a small cross to remove it. The chips above came from pasting a list of words. A maximum, when you want one With max set to 8, the text box goes away once the eighth tag is in. Remove one and it comes back. A number that converts After switching the unit from m² to ft² the number reads 1291.67. The value stored in the field is still 120 m², and it is shown next to the box. An empty drop zone Drop files on the box or click it to choose them. The box is the whole field. It lights up when you drag over it While files are over the field the border and background change, so it is clear where to let go. Thumbnails, types and sizes Images are shown as thumbnails. Other files show their type. Each file has its name and size, and a cross appears on hover to remove it. A wrong file type is refused With accepted_file_extensions set, a file of another type is not uploaded and the field says why. Paint a block with the mouse Press on a cell and drag. The block is previewed and the total updates. Start on a selected cell and the block is erased instead. Switch a whole day or a whole time Click a day name to select the whole day, or a time to select it on every day. Click again to clear it. how it works Three steps to a better field 1 Add the widget Put widget="input_mask", "chips", "unit_input", "file_dropzone" or "schedule_grid" on a field of the matching type in a form view. 2 Set the options Add the options you need in options="{...}": the mask pattern, the unit family, the columns of the drop zone or the hours of the grid. 3 Use the form Type, drop or click. Save the form like any other. The value is stored in the field as usual. setup Configure in two minutes Use it on your own model ✓Use a char field for a mask, chips or a schedule, and a float or integer field for the unit input ✓For the unit input, add a second char field if you want each record to remember its unit, and name it in unit_field ✓For the drop zone, use a many2many field to ir.attachment ✓Edit the form view, add widget and options to the field, and upgrade your module Try the demo first ✓Turn on developer mode ✓Open Settings → Technical → Widgets Demo (Input) ✓Open the Input widgets demo record ✓Type in the reference, add a tag, change the unit, then open the Documents and Availability tabs good to know Questions Which Odoo versions and editions? Odoo 19.0, Community and Enterprise. It depends only on the Web module. Do I need to change my model? No. Each widget works on a field type you already use. The unit input can use a second char field to remember the unit, but it does not need one. What is stored for a masked field? By default the formatted text, for example 2024/0042. Set store to raw and only the characters are saved, for example 4111111111111111, which is easier to match on or send to another system. What is stored for the unit input? A single number in the unit you choose with store_unit. If you name a unit field, that char field holds the unit the record was entered in, so the form shows it back the same way. What is stored for the weekly grid? A JSON object that names only the selected slots, such as {"mon": ["09:00", "10:00"], "wed": ["14:00"]}, with the days in week order and the times sorted. Changing the start, end or step of the grid does not rewrite it. Slots outside the grid you show are kept, and a count tells you they are there. Are dropped files stored differently from uploaded ones? No. The drop zone is built on the standard many2many_binary field. Files are uploaded the same way and become ordinary attachments of the record. Does it load anything from the internet? No. There is no CDN and no external script. 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

14 images available
Web Widgets Pack - Input screenshot 1
Expand Preview
Web Widgets Pack - Input screenshot 2
Expand Preview
Web Widgets Pack - Input screenshot 3
Expand Preview
Web Widgets Pack - Input screenshot 4
Expand Preview
Web Widgets Pack - Input screenshot 5
Expand Preview
Web Widgets Pack - Input screenshot 6
Expand Preview
Web Widgets Pack - Input screenshot 7
Expand Preview
Web Widgets Pack - Input screenshot 8
Expand Preview
Web Widgets Pack - Input screenshot 9
Expand Preview
Web Widgets Pack - Input screenshot 10
Expand Preview
Web Widgets Pack - Input screenshot 11
Expand Preview
Web Widgets Pack - Input screenshot 12
Expand Preview
Web Widgets Pack - Input screenshot 13
Expand Preview
Web Widgets Pack - Input screenshot 14
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.