Menu

Before you upgrade to Odoo 20: PostgreSQL 16, Python 3.12, and 616 removed fields
📰

Before you upgrade to Odoo 20: PostgreSQL 16, Python 3.12, and 616 removed fields

DEV Community: postgres·Mehedi Hassan Shifat·5 days ago
#MbR2igD5
#devtopostgresql#devto#dev#odoo#apps
Reading 0:00
15s threshold

Two hard requirements changed between Odoo 19 and 20, straight from odoo/release.py : the minimum PostgreSQL goes from 13 to 16, and the minimum Python from 3.10 to 3.12. If you're still on PostgreSQL 14 or 15, that is the first job, and it has nothing to do with Odoo itself.

Disclosure: I make a paid Odoo module for the rest of this (link at the bottom).

Then there's your data. I installed a broad set of Community apps on both versions and compared every model and field. Odoo 20 has 39 fewer models and 616 fewer fields in what I compared. Examples: res.partner.company_type , the whole hr.contract.type model, stock.scrap .

That matters because customisations don't follow the data. A view that shows company_type is valid on 19, and on 20 the field it points at is gone.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.