autosave_many2many_tax_tags
Taxes on a journal entry line are not just a value, they generate other lines. This widget saves the whole entry the moment they change, so the tax lines appear immediately instead of at the end.
| Technical name | autosave_many2many_tax_tags |
|---|---|
| Field types | many2many |
| Views | list, form |
| Module | account, present wherever Invoicing or Accounting is installed |
| Used in core | 1 occurrence, the taxes column on journal entry lines in account |
| Versions | Odoo 20.0, Odoo 19.0 |
| No-code setup | No. It is set in view XML and only makes sense on an accounting document line |
| Alternatives | many2many_tax_tags, many2many_tags, many2many_tags_avatar, monetary |
What the autosaving tax tags does
What this means for your team
Supported options in Odoo 19
| Option | Type | What it does |
|---|---|---|
color_field | field | Inherited from the tags widget. Names an integer field used to color the tags. |
no_create | boolean | Inherited. Removes creation from the dropdown so only existing taxes can be chosen.(default: false) |
no_quick_create | boolean | Inherited. Removes creation from the typed text while keeping the popup form path.(default: false) |
create_name_field | field | Inherited. Field the typed text is written into when quick-creating a tag. |
edit_tags | boolean | Inherited from the tags widget. Makes clicking a tag open its record.(default: false) |
The fields it watches are hardcoded. The widget reads balance, account_id, partner_id and tax_ids by literal name and declares no dependency on any of them, so all four have to be present in the view. In the core journal entry list they are; on a custom line view that omits one, the observer will fail rather than degrade quietly.
Working examples
Four triggers, one save, and a condition people miss
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Not released. Byte-identical to Odoo 19 on the development branch. |
| Odoo 19.0 | Verified | First version. Verified against the shipped source. |
| Odoo 18.0 | Not available | Widget does not exist. The column used the plain tax tags widget. |
| Odoo 17.0 | Not available | Widget does not exist. |
| Odoo 16.0 | Not available | Widget does not exist. |
Upgrade note. The widget is new in Odoo 19. Earlier versions used the plain tax tags widget on that column, so an upgrade gains the autosave with the standard accounting views and nothing has to be migrated. Custom journal entry line views that set the tax column explicitly should switch the widget name to pick up the behavior.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| The entry saves itself while I am editing | Intended. Changing taxes, or changing balance, account or partner on a line that already has a tax, saves the whole entry. Use the plain tax tags widget if a draft form should not commit continuously. |
| Changing the balance does not save anything | The observer only acts when the line already carries at least one tax. Expected. Add a tax first if you want the recomputation. |
| An error about reading a field on the line | The view does not load one of the four fields the widget reads literally. Include balance, account_id, partner_id and tax_ids in the line view. |
| The form feels slow with many lines | Each trigger is a full write and recomputation of the entire entry. Enter taxes after the other line values are settled, or use the plain widget on high-volume screens. |
| Changes cannot be discarded | The entry has already been written to the database by the autosave. Correct the entry rather than discarding, or reset it to draft if it has been posted. |
| Search more never disappears from the dropdown | Inherited behavior. The tax tags autocomplete always appends that entry. Nothing to fix; it is deliberate and differs from the account column next to it. |
Autosaving tax tags vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
autosave_many2many_tax_tags | Tax columns where the generated tax lines must appear while the entry is still being edited | Saves the whole journal entry on every tax-relevant change instead of waiting for the user to save |
| many2many_tax_tags | The same dropdown without continuous saving | Tax lines appear only when the user saves the entry |
| many2many_tags | Any ordinary many2many rendered as tags | No accounting behavior and no forced Search more entry |
| many2many_tags_avatar | Tags representing people | Renders avatars alongside the names |
| monetary | The amounts the taxes act on | A single currency-aware value rather than a relation |
Frequently asked questions
Why does my journal entry save itself?+
Can I turn the autosave off?+
Which fields does it need in the view?+
Why does changing the account sometimes save and sometimes not?+
Is it available before Odoo 19?+
Taxes that reconcile the first time
Tax grids, repartition lines and the reports built on them are the part of Odoo Accounting that quietly diverges from what the tax office expects. We set up and verify tax configuration per country on Odoo 16 through 19.
Book a free consultation