OCA / server-tools

Tools for Odoo Administrators to improve some technical features on Odoo.
https://odoo-community.org/psc-teams/tools-30
GNU Affero General Public License v3.0
683 stars 1.48k forks source link

[14.0] base_conditional_image + base_multi_image: outdated image names #2379

Open aleuffre opened 2 years ago

aleuffre commented 2 years ago

Since Odoo 13.0, the fields image, image_medium and image_small have been renamed/changed to image_1920, image_1024, image_512, image_256 and image_128 (and moved to the abstract model "image.mixin")

It'd be extremely useful, if only for consistency and ease of use with existing modules and existing views, if both modules were updated to match the new names used across Odoo.

(It appears that product_multi_image from the repo product-attribute already had to deal with the issue. See for example https://github.com/OCA/product-attribute/pull/857 )

leemannd commented 9 months ago

Hello, we have worked on this topic for the 15.0.

The current results are:

For your information, we will need to change the current implementation because of performance issues. The main issue is the following:

To fix it I think we will need to:

The main issue I see is the potential "lot of updates" that we could have if we change any rule.