Odoo 20 removed the in_process status from payment documents, changing it to two levels: paid and reconciled. Views and automations that filter in-transit payments by state must be updated accordingly.
Scene
After payment registration, the funds first land in the bank suspense account; only after the statement is reconciled is the payment considered written off. Secondary development often builds dashboards, payment reminders, and linkages based on payment status, and these break as soon as the value changes.
Odoo 19 syntax
19 The status bar is draft → in_process → paid: when the payment has been made but the bank has not yet reconciled it, it is in_process; only when the invoice is paid in full does it move up to paid.
# Odoo 19 · account/models/account_payment.py
state = fields.Selection(
selection=[
('draft', "Draft"),
('in_process', "In Process"),
('paid', "Paid"),
('canceled', "Canceled"),
('rejected', "Rejected"),
],Odoo 20 syntax
20 Remove in_process, call that stage paid, call paying off by invoice reconciled, and the status bar becomes draft → paid → reconciled.
# Odoo 20 · account/models/account_payment.py
state = fields.Selection(
selection=[
('draft', "Draft"),
('paid', "Paid"),
('reconciled', "Reconciled"),
('canceled', "Canceled"),
('rejected', "Rejected"),
],Migration Checklist
- Globally search for
in_process: change those with payments in transit topaid, and change those already written off toreconciled. - Customize the statusbar and change the kanban visible list to
draft,paid,reconciled. - The state field is changed together for automation, email templates, and reports.
- The upgrade script updates existing
state='in_process'records topaid. - Dependency on
is_matchedat: 20 — when there are no unreconciled accounts, usestate == 'reconciled'.
Summary
This is moving the entire stage up by one level, not renaming. It is recommended to use constants to map old values to new values.
