OCA / odoo-module-migrator

Python library to migrate odoo base code from a version to another
GNU Affero General Public License v3.0
123 stars 112 forks source link

Replacement of read_group by _read_group in v16 to v17 Migration is not actually expected #90

Closed xmglord closed 5 months ago

xmglord commented 6 months ago

Upon reviewing the functionalities of both methods as per the latest Odoo documentation, it appears that this change might not be accurate due to the distinct purposes and functionalities that each method serves.

  1. Method Signatures and Purposes:
  1. Functional Differences:

Given these distinctions, replacing read_group by _read_group can potentially disrupt the intended functionality of modules that rely on these methods for specific purposes. The direct replacement overlooks the nuanced differences in their applications, leading to possible issues in data presentation and aggregation in migrated modules.

xmglord commented 6 months ago

@Bruno-Zanotti and @jjscarafia please review.

luisg123v commented 6 months ago

FYI this is related to #82

CC @desdelinux, @moylop260

luisg123v commented 5 months ago

After reviewing the main motivation for this change (https://github.com/odoo/odoo/pull/110737), I consider that the replace of read_group by _read_group is actually expected in almost most changes. This because read_group was initially meant to be used by the web client, but we started to use it in backend to group data. Now _read_group serves that purpose better and on a more-efficient manner.

So @xmglord I think this issue should be closed.

Regards,