This module allows administrators to define the decimal precision of float fields and add option values to fields (e.g., adding a date widget option to datetime fields) for QWeb report and view presentation.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Lets administrators control how field values appear in PDF reports: set decimal precision for float fields and add display options (widgets) to fields, optionally depending on unit of measure, currency, company or a filter condition.
This module adds a new configuration screen called "Qweb Field Options", found under the Reporting menu. There, an administrator picks a model and one of its fields, then defines how that field should be rendered in PDF reports.
- For float fields, a number of decimals can be set, so amounts or quantities print with the wanted precision.
- An "Options" text can be entered as a dictionary, for example to display a field with a date widget, a monetary widget or a contact widget. When the monetary widget is used, the currency is filled in automatically from the record's company or the current company.
- Rules can be limited to a specific unit of measure, a specific currency, a specific company, or an extra filter condition written as a domain. When several rules match a record, the most specific one wins.
The module changes how ir.qweb builds fields, but only for PDF reports; other report types are untouched. It also adds validation: the Options text must be a valid dictionary and the filter condition must be a valid domain, otherwise an error is shown. Only system administrators can create, change or delete these rules; other users can only read them. A multi-company rule keeps each rule visible to the right companies.
Depends on
Menus it adds
Models and fields (2)
- ir.qweb · extends an existing model
- qweb.field.options · new modeldigits, domain, uom_id (UoM), field_id, company_id, field_name (Field Name), field_type, currency_id, res_model_id (Model), uom_field_id (UoM Field), field_options (Options), res_model_name (Model Name), currency_field_id
Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 4 confirmed, 5 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/reporting-engine.
terminal Installation and usage
OCA documentation · Odoo 19.0Configuration
Source · Odoo 19.0Go to Settings \> Technical \> Reporting \> Qweb Field Options, and create records according to your needs.
For each record:
- Set Model and Field (required)
- Set UoM and UoM Field, or Currency and Currency Field only for fields of float type (optional)
- Set Domain to specify a domain for more specific filtering (e.g.,
[('secondary_uom_id', '=', 1)]to apply only when a specific secondary UoM is used) (optional) - Set Company (optional)
- Set Options as a string representation of a dictionary. E.g.,
{"widget": "date"},{"widget": "monetary"}, or{"widget": "contact", "fields": ["name", "phone"]} - Set Digits (only for float-type fields). The value is ignored if Options is set
Usage
Source · Odoo 19.0Print a QWeb report (quotation, invoice, purchase order, etc.), and the value presentation for fields like line quantity, price unit and date order are adjusted according to the Qweb Field Options configuration.
Note that among matching configuration records, the one with the strictest condition will be applied.
No verified information in OCA: Installation.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.