Daily updates from Odoo
Saturday, October 28, 2023
3 changes
2 changes
Miscellaneous changes
The method named `_delete_spreadsheet_reviions`: - the method archives instead of deleting - since the version history feature, we CANNOT delete them. Since it's only a single line, it can be inlined. Forward-Port-Of: odoo/enterprise#49629
Original PR description
The method named `_delete_spreadsheet_reviions`: - the method archives instead of deleting - since the version history feature, we CANNOT delete them. Since it's only a single line, it can be inlined. Forward-Port-Of: odoo/enterprise#49629
Currently, as time goes, the revision table only grows and grows. Revisions were previously garbage collected after 3 months, but since the history feature (task 3142006) they are no longer deleted to allow going back in time. With this commit, to limit the size of databases, we delete the history of spreadsheets that have not been modified for more than a year (overridable with an 'ir.config_parameter') Task: 3562324 Forward-Port-Of: odoo/enterprise#49612
Original PR description
Currently, as time goes, the revision table only grows and grows. Revisions were previously garbage collected after 3 months, but since the history feature (task 3142006) they are no longer deleted to allow going back in time. With this commit, to limit the size of databases, we delete the history of spreadsheets that have not been modified for more than a year (overridable with an 'ir.config_parameter') Task: 3562324 Forward-Port-Of: odoo/enterprise#49612
1 change
Code cleanup and technical improvements
A method that was incorrectly named to suggest it deletes spreadsheet revisions has been removed and simplified. The method actually archives revisions rather than deleting them, and since the version history feature was added, permanent deletion is no longer possible. The single-line method has been inlined into the code for better clarity.
Original PR description
The method named `_delete_spreadsheet_reviions`: - the method archives instead of deleting - since the version history feature, we CANNOT delete them. Since it's only a single line, it can be inlined.