Skip to content

Commit

Permalink
[ADD] Add warning for related fields with store=True
Browse files Browse the repository at this point in the history
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: odoo/odoo#127353
  • Loading branch information
lef-adhoc committed Oct 4, 2024
1 parent a4251d1 commit be3025a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit be3025a

Please sign in to comment.