From be3025ac6041999f35311ba4c5b86d7601440cbb Mon Sep 17 00:00:00 2001 From: Franco Leyes Date: Fri, 4 Oct 2024 11:52:53 -0300 Subject: [PATCH] [ADD] Add warning for related fields with store=True This PR adds a warning for related fields with `store=True`, as it is no longer necessary to store related fields for grouping, aggregating, or sorting in Odoo 18. The warning encourages developers to remove `store=True` unless strictly required, optimizing performance and reducing disk space usage. More details can be found in the related Odoo PR: https://github.com/odoo/odoo/pull/127353 --- .../text_warnings/migrate_170_180/related_fields.yaml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 odoo_module_migrate/migration_scripts/text_warnings/migrate_170_180/related_fields.yaml diff --git a/odoo_module_migrate/migration_scripts/text_warnings/migrate_170_180/related_fields.yaml b/odoo_module_migrate/migration_scripts/text_warnings/migrate_170_180/related_fields.yaml new file mode 100644 index 00000000..0de9d0ef --- /dev/null +++ b/odoo_module_migrate/migration_scripts/text_warnings/migrate_170_180/related_fields.yaml @@ -0,0 +1,2 @@ +.py: + related=.*store=True: "[18] It is no longer necessary to set store=True on related fields to group, aggregate, or sort them. Remove store=True unless it is strictly required. More details: https://github.com/odoo/odoo/pull/127353"