Skip to content

Commit

Permalink
[12.0] Add shopinvader_locomotive_algolia
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Jan 8, 2020
1 parent 2913423 commit 686c766
Show file tree
Hide file tree
Showing 12 changed files with 674 additions and 0 deletions.
86 changes: 86 additions & 0 deletions shopinvader_locomotive_algolia/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
==============================
Shopinvader Locomotive algolia
==============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fodoo--shopinvader-lightgray.png?logo=github
:target: https://github.com/OCA/odoo-shopinvader/tree/12.0/shopinvader_locomotive_algolia
:alt: OCA/odoo-shopinvader
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/odoo-shopinvader-12-0/odoo-shopinvader-12-0-shopinvader_locomotive_algolia
:alt: Translate me on Weblate

|badge1| |badge2| |badge3| |badge4|

Takes care of exporting Algolia related data to Locomotive.

**Table of contents**

.. contents::
:local:

Changelog
=========

12.0.1.0.0 (2019-11-20)
~~~~~~~~~~~~~~~~~~~~~~~

* [12.0] Add shopinvader_locomotive_algolia

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/odoo-shopinvader/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/odoo-shopinvader/issues/new?body=module:%20shopinvader_locomotive_algolia%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Camptcamp SA

Contributors
~~~~~~~~~~~~

* Simone Orsi <[email protected]>

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* Camptocamp
* Cosanum

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/odoo-shopinvader <https://github.com/OCA/odoo-shopinvader/tree/12.0/shopinvader_locomotive_algolia>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions shopinvader_locomotive_algolia/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import component
15 changes: 15 additions & 0 deletions shopinvader_locomotive_algolia/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2019 Camptocamp (http://www.camptocamp.com).
# @author Simone Orsi <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Shopinvader Locomotive algolia",
"summary": """
This addons is used to push the initial algolia configuration
to locomotive""",
"version": "12.0.1.0.0",
"license": "AGPL-3",
"author": "Camptcamp SA",
"website": "https://github.com/shopinvader/odoo-shopinvader",
"depends": ["component", "shopinvader_locomotive", "shopinvader_algolia"],
}
1 change: 1 addition & 0 deletions shopinvader_locomotive_algolia/component/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import shopinvader_site_export_mapper
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2019 Camptocamp (http://www.camptocamp.com).
# @author Simone Orsi <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo.addons.component.core import Component


class ShopinvaderSiteExportMapper(Component):
_inherit = ["shopinvader.site.export.mapper"]

# matching $searchengine_name + '_config'
def _algolia_config(self, se_backend, config):
if (
self.options["force"]
or not config.get("application_id")
or not config.get("api_key")
):
spec_backend = se_backend.specific_backend
config.update(
{
"application_id": spec_backend.algolia_app_id,
"api_key": spec_backend.algolia_api_key,
}
)
return config
1 change: 1 addition & 0 deletions shopinvader_locomotive_algolia/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Simone Orsi <[email protected]>
4 changes: 4 additions & 0 deletions shopinvader_locomotive_algolia/readme/CREDITS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The development of this module has been financially supported by:

* Camptocamp
* Cosanum
1 change: 1 addition & 0 deletions shopinvader_locomotive_algolia/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Takes care of exporting Algolia related data to Locomotive.
4 changes: 4 additions & 0 deletions shopinvader_locomotive_algolia/readme/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
12.0.1.0.0 (2019-11-20)
~~~~~~~~~~~~~~~~~~~~~~~

* [12.0] Add shopinvader_locomotive_algolia
Loading

0 comments on commit 686c766

Please sign in to comment.