2 Odoo migration cheatsheet
Matt Marcha edited this page 2025-12-11 10:09:24 -10:00

Odoo migration Cheatsheet

v17

(xml) attrs

The field "attr" is not supported since v17. Replace it with :

  • invisible : invisible="{PYTHON}"
  • readonly : readonly="{PYTHON}"

(py) group_expand

The related function now takes only two arguments after self. The last one (order) has been removed.

v18

(xml) tree

<tree> is replaced by <list>. This implies :

  • You might want to update all your <xpath>

  • Also replace it in all your custom views

  • Also update your action records, the view_mode field

v19

(py) model._sql_constrains

The models field _sql_constrains has been removed. Replace it by several attributes using models.Constraint, models.Index and models.UniqueIndex
See doc