Skip to content

[18.0][MIG] product_multi_image: Migration to 18.0#2253

Open
IJOL wants to merge 25 commits intoOCA:18.0from
BITVAX:18.0-mig-product_multi_image
Open

[18.0][MIG] product_multi_image: Migration to 18.0#2253
IJOL wants to merge 25 commits intoOCA:18.0from
BITVAX:18.0-mig-product_multi_image

Conversation

@IJOL
Copy link
Copy Markdown

@IJOL IJOL commented Apr 1, 2026

Summary

  • Port product_multi_image from 16.0 (BITVAX trivax branch) to 18.0
  • Adapt to base_multi_image v18 API: image_1920 is now computed from storage fields, use attachment_image for writes/creates
  • Fix hooks signature: post_init_hook(cr, registry) -> post_init_hook(env)
  • Fix kanban view xpath for v18 card-based template
  • Fix form view xpath: load_from field removed in v18, use name instead
  • Replace refresh() with invalidate_recordset() in tests
  • Fix lambda loop variable captures (ruff B023)
  • Version bump to 18.0.1.0.0
  • Pre-commit auto fixes applied
  • Includes BITVAX trivax improvements: variant-specific image priority, POS image sync, unnecessary write avoidance

Tests

  • 13 tests pass locally (0 failures, 0 errors)

pedrobaeza and others added 24 commits April 1, 2026 18:58
* Upgrade product_multi_image to v9
* Add server-tools to oca_dependencies
* Migrate product_multi_image to v10
* Remove old api from `product.product`
* Add test coverage for hooks and variant count
* Fix oca depends
* Add uninstall hook
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: product-attribute-15.0/product-attribute-15.0-product_multi_image
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_multi_image/
Currently translated at 100.0% (14 of 14 strings)

Translation: product-attribute-15.0/product-attribute-15.0-product_multi_image
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_multi_image/es/
Currently translated at 100.0% (14 of 14 strings)

Translation: product-attribute-15.0/product-attribute-15.0-product_multi_image
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_multi_image/it/
- Separate _compute_image_1920 from _compute_image_ids for variants
- Prioritize variant-specific images, fallback to generic
- Sync image_variant_1920 for POS
- Avoid unnecessary writes in inverse
- Better template image fallback
- Remove post_init_hook (no longer needed)
- Clean up manifest
@IJOL IJOL force-pushed the 18.0-mig-product_multi_image branch from 0f8928e to 192cf58 Compare April 1, 2026 17:03
@IJOL IJOL force-pushed the 18.0-mig-product_multi_image branch from 192cf58 to 01d9a34 Compare April 1, 2026 19:15
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.