diff --git a/shopinvader_algolia/models/se_index.py b/shopinvader_algolia/models/se_index.py index b4f3116989..4a12cc8ba1 100644 --- a/shopinvader_algolia/models/se_index.py +++ b/shopinvader_algolia/models/se_index.py @@ -4,6 +4,8 @@ from odoo import models +from odoo.addons.connector_algolia.utils import data_merge + class SeIndex(models.Model): _inherit = "se.index" @@ -18,5 +20,5 @@ def _get_settings(self): self.backend_id, self.lang_id ) if facetting_values: - data.update({"attributesForFaceting": facetting_values}) + data = data_merge(data, {"attributesForFaceting": facetting_values}) return data