Daily updates from Odoo
Friday, July 11, 2025
1 change · master
Features or functions removed from Odoo
Unused data and demo files were removed from several Odoo Enterprise modules after a new automated check identified files that were not loaded by the system. This reduces clutter and helps prevent outdated or incompatible files from causing confusion in future maintenance.
Original PR description
In the OCA we have added the following lint: - https://github.com/OCA/odoo-pre-commit-hooks/pull/127 For Odoo I have created the following new LINT: - https://github.com/odoo/odoo/pull/211259 It…
In the OCA we have added the following lint:
- https://github.com/OCA/odoo-pre-commit-hooks/pull/127
For Odoo I have created the following new LINT:
- https://github.com/odoo/odoo/pull/211259
It detects the data files not used
It means, csv or xml files in data/ or demo/ folders
but not referenced in the __manifest__.py
- `"data": [...]` or `"demo": [...]` sections
Then I have ran this new check:
find . -type f -name "__manifest__.py" -exec bash -c 'oca-checks-odoo-module --enable file-not-used "$(dirname "$0")"' {} \;
And it detects a few cases
We could add them to manifest file or delete them
but they were not used before maybe it is a better idea to delete them
since that they could be not needed or incompatibles
Related to enterprise PR:
- https://github.com/odoo/odoo/pull/211150
# UPDATED
Data files called from hooks:
https://github.com/odoo/enterprise/blob/a9a2a972d96665bdb4068427555ba40ddffc0325/product_unspsc/hooks.py#L28
https://github.com/odoo/enterprise/blob/a9a2a972d96665bdb4068427555ba40ddffc0325/pos_restaurant_preparation_display/models/pos_config.py#L18
https://github.com/odoo/enterprise/blob/a9a2a972d96665bdb4068427555ba40ddffc0325/stock_barcode/models/epc_encoder.py#L283
https://github.com/odoo/enterprise/blob/f0b2cb72529acaec3cff5edc6cdb8bb3c712bed9/l10n_uk_reports_cis/models/hmrc_transaction.py#L170