HomeModulesWebsiteWeb Widgets Pack - Capture
Web Widgets Pack - Capture
WebsiteAuraOdoo Verified

Web Widgets Pack - Capture

Five capture widgets: webcam_capture, audio_record, barcode, checklist and weekday_picker.

Technical Specifications & Compatibility

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

Overview & Description

Aura Odoo Tech Supports:CommunityEnterprise Capture Widgets Version 19.0.1.0.0: five ways to get data onto a form Take a photo, record a note, show a barcode, tick a list, pick days. Five field widgets for the things people would rather not type. Each one keeps a normal value in a normal field, so search, export and reports work as usual. ✓Photo and voice note straight from the camera and microphone ✓Barcodes drawn in the browser, with wrong values explained ✓A checklist kept as plain text and days kept in one field Built on Camera and microphone Barcode as SVG Depends on Web only 5 field widgets in one module 29 options to fit your forms 5 barcode types: Code 128, EAN-13, EAN-8, UPC-A, Code 39 1 dependency: Odoo Web why you will like it Less typing, fewer mistakes Each widget replaces a file upload, a typed code or a row of checkboxes with one control on the field itself. Photo from the camera Press Open camera, take the photo and it is stored on the record. Add a countdown so you can step back first. The camera light goes out as soon as the photo is taken. Mirrored preview, true photo The preview is a mirror, which feels natural. The photo that is stored is not mirrored, so lettering reads the right way round. Scaled before it is stored A frame wider than max_width is scaled down before saving. In our test a 1280 by 720 frame with max_width 640 was stored at 640 by 360. Voice notes in place Record, pause, stop. While it records you see a clock and a level meter, so you know the microphone is hearing you. max_seconds stops the note on its own. Barcodes drawn in the browser Code 128, EAN-13, EAN-8, UPC-A and Code 39 are drawn as SVG, so they stay sharp at any size. We read the drawn codes back with an independent decoder and got the same values. Wrong codes are explained A wrong check digit is reported with the digit it should be, and a character that a symbology cannot carry is named. Nothing wrong is drawn. A checklist that is just text Tasks are stored as "- [ ]" and "- [x]" lines in a normal text field. Lines that are not tasks stay as headings, so notes and tasks can share one field. Nest, reorder, hide done Two spaces of indent in the text nest a task. Drag to reorder, and sub-steps travel with their parent. With cascade on, ticking a parent ticks its sub-steps. Hide what is finished. Days in one field Seven toggles and four one-click shortcuts store the days in one field: iCalendar codes, ISO numbers, day names, or a number with one bit per day. one attribute each Add it to a field Set the widget on a field of the matching type. Every option has a default, so the short form works. webcam_capture binary A photo from the device camera, with an optional countdown. Retake and remove are on the field. <field name="photo" widget="webcam_capture" options="{'height': 320, 'max_width': 1280, 'countdown': 3}"/> Options: height (preview height in pixels), max_width (stored width in pixels), quality (0 to 1), format (image/jpeg, image/png or image/webp), mirror (preview only), facing (user or environment), countdown (seconds), filename_field (a char field that receives the file name). audio_record binary A voice note recorded in place, with a clock, a level meter and pause. A player, a download link and a remove button appear after it. <field name="voice_note" widget="audio_record" options="{'filename_field': 'voice_note_name', 'max_seconds': 120}"/> Options: max_seconds (stops on its own, 0 means no limit), show_level (level meter), filename_field (a char field that receives the file name), download (download link). barcode char Draws the value of a text field as a barcode. It draws a code; it does not scan one. <field name="ean" widget="barcode" options="{'symbology': 'auto', 'height': 60}"/> Options: symbology (auto, code128, ean13, ean8, upca or code39), height, bar_width, human (digits under the bars), quiet_zone, add_check_digit (compute the last digit when it is missing), ratio (Code 39 wide to narrow bars, 2 or 3). checklist text Markdown task lines shown as a list you can tick, edit, add to, drag and hide. A switch shows the raw text. <field name="tasks" widget="checklist" options="{'cascade': true}"/> Options: cascade (ticking a parent ticks its sub-steps), progress (progress bar), add (add box), source (switch to raw text), hide_done (start with finished tasks hidden), rows (height of the text editor). weekday_picker charinteger Seven day toggles and four shortcuts. Read-only, it collapses to a summary such as "Weekdays". <field name="opening_days" widget="weekday_picker" options="{'mode': 'rrule'}"/> Options: mode (rrule as MO,WE,FR, csv as 1,3,5, names as mon,wed,fri, or bitmask; an integer field always stores the bitmask), first_day (1 for Monday; by default the week starts where the user language says), shortcuts, labels (short, narrow or long). see it in action Real screens, real demo data Every picture below is a capture of the widgets running in Odoo 19. The photo and the voice note come from the test camera and microphone of the browser used for the captures, and the list has a few extra sample records added to the demo data. The demo record One record uses all five widgets. Codes and days are at the top. The photo, the voice note and the checklist are in tabs. Barcodes drawn from the value The value is a plain text field. The bars are drawn in the browser as SVG, and an EAN-13 prints its digits under the bars. Wrong values are explained Change the last digit of the EAN-13 and the widget says the check digit should be 7. Type an @ in the Code 39 value and it names the character. Days in one field The Weekend shortcut turned on Sunday and Saturday, and one click added Tuesday to the delivery days. Opening days are stored as SA,SU. Delivery days are an integer field and store 23. The same widgets in a list Options such as a low bar height, no digits and narrow labels make the widgets fit a list row. Read-only stays tidy With readonly="1" the barcode loses its text box, the days collapse to "Weekdays" and "Mon, Wed, Fri", and the photo and the player lose their buttons. A countdown before the shot Press Take photo and a 3, 2, 1 countdown runs so you can step back. The preview is mirrored, which is why the test camera clock reads backwards. The stored photo is not mirrored. The photo is in the field The camera is off as soon as the shot is taken. Retake opens it again, and the bin removes the photo. Save the form and the photo is stored on the record. Recording a voice note A clock shows the time against the limit, and the level meter moves with the microphone. Pause, Stop or Discard. Play it back After Stop the note sits in the field with a player, a download link and a bin. Discard while recording keeps the note that was already saved. A checklist that is just text Preparation and Commissioning are lines that are not tasks, so they stay as headings. Indented tasks are nested. The bar shows how many are done. Drag to reorder A line shows where the row will land, and the dragged row is dimmed. Sub-steps travel with their parent. Here Connect power was ticked and its sub-steps were ticked with it. how it works Three steps to a capture form 1 Add the widget Put widget="webcam_capture", "audio_record", "barcode", "checklist" or "weekday_picker" on a field of the matching type. 2 Set the options Pass options in the options attribute if the defaults do not suit. Every option is optional. 3 Fill in and save Take the photo, record the note, tick the tasks and save. The value goes into the field like any other. setup Configure in two minutes Use it on your own model ✓Add the fields: a Binary for a photo or voice note, a Char for a code, a Text for a checklist, a Char or Integer for days ✓For a voice note or a photo, add a Char field for the file name and point filename_field at it ✓Edit the form view and set the widget on each field ✓Serve Odoo over HTTPS: browsers only allow the camera and the microphone on a secure page, and localhost counts as one ✓Upgrade your module and open a record Try the demo first ✓Turn on developer mode ✓Open Settings → Technical → Widgets Demo (Capture) ✓Open the Capture widgets demo record ✓Allow the camera and microphone when the browser asks, then take a photo and record a note good to know Questions Which Odoo versions and editions? Odoo 19.0, Community and Enterprise. It depends only on the Web module. Does the barcode widget scan? No. It draws a barcode from the value of a text field. It does not read one from a camera. Which barcode types can it draw? Code 128, EAN-13, EAN-8, UPC-A and Code 39. With auto, a 13, 12 or 8 digit value is drawn as EAN or UPC and everything else as Code 128. Why does the camera need HTTPS? Browsers only offer the camera and the microphone on a secure page: HTTPS, or localhost. Where the browser does not offer them, the widget says a secure page is needed. If the browser refuses access, it says that instead. Where is the data stored? A photo and a voice note go into a Binary field, like any uploaded file. A checklist is text, a code is text and days are a text or a number, so they stay readable outside the widget. How big is a voice note? It depends on the browser. In our test the browser recorded Opus in WebM at about 15 KB per second, so a five second note was about 80 KB. Set max_seconds to keep notes short. Does it load anything from the internet? No. It has no CDN and no external script. During our test session the browser made no request to any address other than the Odoo server. Can I use only some of the widgets? Yes. Each field picks its own widget, so a form can use one of them or all five. 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

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