Skip to content

[18.0][IMP] product_pricelist_direct_print: Add support for grouping product template fields and m2m#2244

Open
CarlosRoca13 wants to merge 1 commit intoOCA:18.0from
Tecnativa:18.0-FIX-product_pricelist_direct_print
Open

[18.0][IMP] product_pricelist_direct_print: Add support for grouping product template fields and m2m#2244
CarlosRoca13 wants to merge 1 commit intoOCA:18.0from
Tecnativa:18.0-FIX-product_pricelist_direct_print

Conversation

@CarlosRoca13
Copy link
Contributor

Before these changes, fields were always taken from the variant model, regardless of whether grouping by variants was selected or not, which could lead to errors. Additionally, grouping by many-to-many (m2m) fields was not allowed.

With these changes, it is now possible to group by m2m fields, and products are distinguished from variants when retrieving their fields, ensuring that errors do not occur.

cc @Tecnativa TT61595

ping @sergio-teruel @carlosdauden

@OCA-git-bot
Copy link
Contributor

Hi @legalsylvain,
some modules you are maintaining are being modified, check this out!

@legalsylvain
Copy link
Contributor

Hi @CarlosRoca13.
thanks for your contribution.

Could you add a test ? (and take a look on red CI) ? thanks !

@CarlosRoca13 CarlosRoca13 force-pushed the 18.0-FIX-product_pricelist_direct_print branch from 25fc270 to d33c167 Compare March 23, 2026 10:36
@CarlosRoca13
Copy link
Contributor Author

Done @legalsylvain

…t template fields and m2m

Before these changes, fields were always taken from the variant model, regardless of whether grouping by variants was selected or not, which could lead to errors. Additionally, grouping by many-to-many (m2m) fields was not allowed.

With these changes, it is now possible to group by m2m fields, and products are distinguished from variants when retrieving their fields, ensuring that errors do not occur.
@CarlosRoca13 CarlosRoca13 force-pushed the 18.0-FIX-product_pricelist_direct_print branch from d33c167 to 068aa4f Compare March 23, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants