Odoo 19→20 Accounting (account) payment state machine refactor: in_process changed to reconciled

Odoo 19→20 Accounting Differences 01

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

  1. Globally search for in_process: change those with payments in transit to paid, and change those already written off to reconciled.
  2. Customize the statusbar and change the kanban visible list to draft,paid,reconciled.
  3. The state field is changed together for automation, email templates, and reports.
  4. The upgrade script updates existing state='in_process' records to paid.
  5. Dependency on is_matched at: 20 — when there are no unreconciled accounts, use state == '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.

关于我们

​我们致力于帮助中小企业实现数字化转型,我们的团队由一群充满激情和创新思维的专业人士组成,他们具备丰富的行业经验和技术专长。

扫一扫获取顾问以及手册

Sign in to leave a comment
Odoo 19→20 Sales (sale) Order Section Lines: Add Quantity and Unit
Odoo 19→20 Sales Differences 01