Skip to content

Commit

Permalink
Merge PR #622 into 10.0
Browse files Browse the repository at this point in the history
Signed-off-by sebastienbeau
  • Loading branch information
shopinvader-git-bot committed Apr 24, 2020
2 parents d9accf6 + b4e559a commit c14f61b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion shopinvader_search_engine/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
"website": "www.akretion.com",
"license": "AGPL-3",
"category": "Generic Modules",
"depends": ["shopinvader", "connector_search_engine"],
"depends": [
"shopinvader",
"connector_search_engine",
"base_technical_user",
],
"data": [
"views/shopinvader_backend_view.xml",
"views/product_view.xml",
Expand Down
6 changes: 4 additions & 2 deletions shopinvader_search_engine/models/shopinvader_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ def _get_default_models(self):

@api.multi
def force_recompute_all_binding_index(self):
self.mapped("se_backend_id.index_ids").force_recompute_all_binding()
self.sudo_tech().mapped(
"se_backend_id.index_ids"
).force_recompute_all_binding()
return True

@api.multi
def force_batch_export_index(self):
for index in self.mapped("se_backend_id.index_ids"):
for index in self.sudo_tech().mapped("se_backend_id.index_ids"):
index.force_batch_export()
return True

Expand Down

0 comments on commit c14f61b

Please sign in to comment.