Skip to content

Commit

Permalink
[FIX] shopinvader_search_engine_product_media: Allows to configure me…
Browse files Browse the repository at this point in the history
…dia_data_url_strategy

Add missing view to allows to set strategy to use when generating the url to a product media
  • Loading branch information
lmignon committed Mar 20, 2024
1 parent 0be17b5 commit e515efd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shopinvader_search_engine_product_media/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions shopinvader_search_engine_product_media/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
"shopinvader_search_engine",
"fs_product_multi_media",
],
"data": [
"views/se_backend.xml",
],
"development_status": "Alpha",
}
Empty file.
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Shopinvader Search Engine Product Media</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d01d039c1c9a93ac004c345506bbdf77110ac77b997e50cf71ee8ae09dd83cb5
!! source digest: sha256:cadd201e455dee2f6cf947acf5a2266e3591369fb3d9c58a8e031685ac0658e8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/shopinvader/odoo-shopinvader/tree/16.0/shopinvader_search_engine_product_media"><img alt="shopinvader/odoo-shopinvader" src="https://img.shields.io/badge/github-shopinvader%2Fodoo--shopinvader-lightgray.png?logo=github" /></a></p>
<p>This module adds information related to media linked to a product into the
Expand Down
14 changes: 14 additions & 0 deletions shopinvader_search_engine_product_media/views/se_backend.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

<record id="se_backend_form_view" model="ir.ui.view">
<field name="model">se.backend</field>
<field name="inherit_id" ref="connector_search_engine.se_backend_form_view" />
<field name="arch" type="xml">
<field name="backend_type" position="after">
<field name="media_data_url_strategy" />
</field>
</field>
</record>

</odoo>

0 comments on commit e515efd

Please sign in to comment.