TIP: You can type at any time to perform a new search.
Accounting Sequence
account_sequence · odoo/odoo
Security findings
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `WITH duplicated_sequence AS ( SELECT name, journal_id, state FROM account_move WHERE state = 'posted' AND name != '/' GROUP BY journal_id, name, state HAVING COUNT(*) > 1 ), to_update AS ( SELECT move.id, move.name, move.journal_id, move.state, move.date, row_number() OVER(PARTITION BY move.name, move.journal_id ORDER BY move.name, move.journal_id, move.date) AS row_seq FROM duplicated_sequence JOIN account_move move ON move.name = duplicated_sequence.name AND move.journal_id = duplicated_sequence.journal_id AND move.state = duplicated_sequence.state ), new_vals AS ( SELECT id, name || ' (' || (row_seq-1)::text || ')' AS name FROM to_update WHERE row_seq > 1 ) UPDATE account_move SET name = new_vals.name FROM new_vals WHERE account_move.id = new_vals.id;` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- odoo/odoo · module folder
- Module version
- 1.0
- Category
- Hidden
- Folder size
- 0.07 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- Yes
- Website
- None
- Last tracking update
- 2026-08-07 05:43:01
- Authors
- Maintainers
- None
- Committers
- Martin Trigaux, Odoo Translation Bot, Andrea Grazioso (agr-odoo), Rémy Voet (ryv), william-andre
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- l10n_latam_account_sequence
- Description
Change the way `sequence.mixin` works to reduce concurrency errors
Code Analysis
Views touched (0)
No views found for this module.
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…