l10n_ro_edi_stock_document_state
Romania's e-Transport replies can be one error or ten. l10n_ro_edi_stock_document_state takes Odoo's document state widget and reformats the popover: single messages stay plain, multiple errors become a bulleted list.
| Technical name | l10n_ro_edi_stock_document_state |
|---|---|
| Field types | selection, many2one |
| Views | list (embedded e-Transport document lists) |
| Module | l10n_ro_edi_stock (Romania e-Transport) |
| Used in core | 2 occurrences across 2 modules: l10n_ro_edi_stock, l10n_ro_edi_stock_batch |
| Versions | Odoo 20.0, Odoo 19.0, Odoo 18.0, Odoo 17.0 |
| No-code setup | No. Ships preconfigured on the e-Transport document lists |
| Alternatives | account_document_state, selection, selection_badge |
What the e-Transport state field does
What this means for your team
Supported options in Odoo 19
| Option | Type | What it does |
|---|---|---|
placeholder_field | field name (inherited, dead) | Comes with the spread selection descriptor and is never read by its extractProps; setting it does nothing. Listed only to document the inherited surface honestly.(since Odoo 19.0) |
Both core lists already load the message column invisibly, so the popover works out of the box, unlike the E-Factura list documented on the parent widget's page. If you inherit these views and rebuild the list, keep the column_invisible="1" message field or the icon disappears.
Working examples
Thirteen lines, read closely
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Not released. Byte-identical on the development branch; see below. |
| Odoo 19.0 | Verified | Verified against the shipped source; unchanged since 17. |
| Odoo 18.0 | Verified | Same file and behavior. |
| Odoo 17.0 | Verified | Introduced with the e-Transport document flow. |
| Odoo 16.0 | Not available | Widget does not exist. |
Upgrade note. Nothing changes across 17, 18 and 19. Inherited views keep working; only keep the invisible message column when customizing the lists.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| No info icon next to a failed declaration | A customized list dropped the invisible message column the widget reads. Restore <field name="message" column_invisible="1"/> in the embedded list. |
| Errors show as one bullet with everything glued together | The API response arrived without newlines, so the splitter sees a single line. Expected: the widget only bullets what arrives as separate lines. |
| Copied text contains bullet characters | The clipboard reads the same reformatted getter the popover shows. Expected behavior; strip the bullets after pasting if a system needs raw text. |
| Widget missing on a database without the Romanian localization | The registration ships in l10n_ro_edi_stock; other databases log Missing widget and fall back to plain selection. Install the module, or use account_document_state outside Romania. |
| State renders but popover is empty | The message contains only whitespace lines; the filter removes them all. Nothing to fix client side; check what the server stored in message. |
E-Transport state field vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
l10n_ro_edi_stock_document_state | Romanian e-Transport statuses whose rejections arrive as multi-line ANAF errors | Inherits the document state popover and reformats multi-line messages into bullets |
| account_document_state | Any e-invoicing or integration status with a verbatim message popover | The parent widget: same icon and popover, no line splitting or bullets |
| selection | Plain selection display without message affordances | No icon, no popover, no companion field contract |
| selection_badge | Louder visual status as colored badges | Emphasis over explanation; error texts stay out of reach |
Frequently asked questions
What is the UIT shown next to the state?+
When do I get bullets instead of plain text?+
Does this widget also cover Romanian E-Factura invoices?+
Can I point the popover at a different field than message?+
Why does my custom list show the state but nothing else?+
Trucks waiting on UIT codes and cryptic ANAF replies?
We integrate Odoo with government platforms across Europe, e-Transport and E-Factura included: reliable submissions, readable errors and retry flows your logistics team can run without a developer on call.
Book a free consultation