Skip to content

Commit

Permalink
shopinvader: binding wizard skip job via ctx key
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Jun 4, 2021
1 parent e4fd612 commit f6d8b94
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions shopinvader/wizards/shopinvader_variant_binding_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ def bind_products(self):
for wizard in self:
backend = wizard.backend_id
method = backend.with_delay().bind_selected_products
if wizard.run_immediately:
run_immediately = wizard.run_immediately or self.env.context.get(
"bind_products_immediately"
)
if run_immediately:
method = backend.bind_selected_products
method(
wizard.product_ids,
langs=wizard.lang_ids,
run_immediately=wizard.run_immediately,
run_immediately=run_immediately,
)

@api.model
Expand Down

0 comments on commit f6d8b94

Please sign in to comment.