From e515efd3c1952eef84abebbb1753e5657b9f4a96 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Wed, 20 Mar 2024 13:18:19 +0100 Subject: [PATCH] [FIX] shopinvader_search_engine_product_media: Allows to configure media_data_url_strategy Add missing view to allows to set strategy to use when generating the url to a product media --- shopinvader_search_engine_product_media/README.rst | 2 +- .../__manifest__.py | 3 +++ .../readme/newsfragments/.gitignore | 0 .../readme/newsfragments/1518.bugfix | 3 +++ .../static/description/index.html | 2 +- .../views/se_backend.xml | 14 ++++++++++++++ 6 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 shopinvader_search_engine_product_media/readme/newsfragments/.gitignore create mode 100644 shopinvader_search_engine_product_media/readme/newsfragments/1518.bugfix create mode 100644 shopinvader_search_engine_product_media/views/se_backend.xml diff --git a/shopinvader_search_engine_product_media/README.rst b/shopinvader_search_engine_product_media/README.rst index f083e32a49..13c7028369 100644 --- a/shopinvader_search_engine_product_media/README.rst +++ b/shopinvader_search_engine_product_media/README.rst @@ -7,7 +7,7 @@ Shopinvader Search Engine Product Media !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:d01d039c1c9a93ac004c345506bbdf77110ac77b997e50cf71ee8ae09dd83cb5 + !! source digest: sha256:cadd201e455dee2f6cf947acf5a2266e3591369fb3d9c58a8e031685ac0658e8 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png diff --git a/shopinvader_search_engine_product_media/__manifest__.py b/shopinvader_search_engine_product_media/__manifest__.py index c76bd86588..5d11f50d6c 100644 --- a/shopinvader_search_engine_product_media/__manifest__.py +++ b/shopinvader_search_engine_product_media/__manifest__.py @@ -16,5 +16,8 @@ "shopinvader_search_engine", "fs_product_multi_media", ], + "data": [ + "views/se_backend.xml", + ], "development_status": "Alpha", } diff --git a/shopinvader_search_engine_product_media/readme/newsfragments/.gitignore b/shopinvader_search_engine_product_media/readme/newsfragments/.gitignore new file mode 100644 index 0000000000..e69de29bb2 diff --git a/shopinvader_search_engine_product_media/readme/newsfragments/1518.bugfix b/shopinvader_search_engine_product_media/readme/newsfragments/1518.bugfix new file mode 100644 index 0000000000..ce6f9a68b0 --- /dev/null +++ b/shopinvader_search_engine_product_media/readme/newsfragments/1518.bugfix @@ -0,0 +1,3 @@ +Allows to configure the strategy to apply to generate the url for a given media +from the search engine backend form view. The field was declared on the model +but not displayed on the form. This change adds the field to the form view. diff --git a/shopinvader_search_engine_product_media/static/description/index.html b/shopinvader_search_engine_product_media/static/description/index.html index 1698a47a09..63341031ee 100644 --- a/shopinvader_search_engine_product_media/static/description/index.html +++ b/shopinvader_search_engine_product_media/static/description/index.html @@ -367,7 +367,7 @@

Shopinvader Search Engine Product Media

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:d01d039c1c9a93ac004c345506bbdf77110ac77b997e50cf71ee8ae09dd83cb5 +!! source digest: sha256:cadd201e455dee2f6cf947acf5a2266e3591369fb3d9c58a8e031685ac0658e8 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Alpha License: AGPL-3 shopinvader/odoo-shopinvader

This module adds information related to media linked to a product into the diff --git a/shopinvader_search_engine_product_media/views/se_backend.xml b/shopinvader_search_engine_product_media/views/se_backend.xml new file mode 100644 index 0000000000..2bd3771243 --- /dev/null +++ b/shopinvader_search_engine_product_media/views/se_backend.xml @@ -0,0 +1,14 @@ + + + + + se.backend + + + + + + + + +