Friday, July 11, 2025
4 changes · master
Features or functions removed from Odoo
This change removes obsolete graph-related functions from the sales and CRM team areas because they are no longer used. It reduces maintenance overhead without changing day-to-day business workflows.
Original PR description
These are not used anymore. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Several unused configuration and sample data files were removed because they were not referenced by their modules and were not being loaded. This reduces maintenance clutter and lowers the chance that outdated files cause confusion in future updates.
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 https://github.com/odoo/enterprise/pull/86151
Not deleted:
- addons/marketing_card/data/utm_source_data.xml needed by @reth-odoo comment https://github.com/odoo/odoo/pull/211150#discussion_r2101718811
- addons/point_of_sale/data/orders_demo.xml is loaded from https://github.com/odoo/odoo/blob/85321186dae5c13c2b669c766dbcf6cd58db327b/addons/point_of_sale/models/pos_config.py#L988
- addons/l10n_ec_sale/data/payment_method_data.xml needed by @svfu-odoo comment https://github.com/odoo/odoo/pull/211150#issuecomment-2900302812An obsolete purchase requisition view customization was removed because it no longer changed anything in the purchase order list. This keeps the system code cleaner without changing how users work with purchase orders.
Original PR description
This commit removes the 'purchase_order_tree_inherit_purchase_requisition' view, which was inheriting the 'purchase.purchase_order_tree' view but did not introduce any actual changes. Originally, this view was used to inject the 'has_alternatives' field, but that logic has since been removed in this [PR](https://github.com/odoo/odoo/pull/211005). As a result, the view inheritance became redundant and had no functional impact. This commit removes the dead code to keep the codebase clean.
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