Daily updates from Odoo
Monday, August 5, 2019
1 change
Features or functions removed from Odoo
Odoo removed an old shortcut used to rename database fields because it did not fully preserve related setup data, defaults, or translations during upgrades. This reduces the risk of incomplete or misleading upgrade behavior across multiple business apps, but may require more explicit migration handling for renamed fields.
Original PR description
This attribute is misleading as it is insufficient to correctly upgrade the database. It only renames the column in the database, but other operations are needed, like updating the corresponding `ir.model.fields` record (and its xmlid). The default values and the translations are also lost during the upgrade. Moreover, this feature was misused. It was: - left on fields during multiple versions. - used on reports (SQL views). This would be ok if the feature was complete, but, as is, it was useless. - kept unchanged after a second renaming of the field (which can happen versions later the first rename). - used, even when the meaning of the field changed. i.e. the field `archived` has been renamed to the classic `active`, but the value in the database should be switched.