Skip to content

Commit

Permalink
[FIX] do not autobind when importing a product
Browse files Browse the repository at this point in the history
  • Loading branch information
damdam-s committed Nov 2, 2015
1 parent cb11b0b commit 24c7f2c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def create(self, vals):
session = ConnectorSession.from_env(self.env)
on_product_create.fire(session, self._name, product.id, vals)
if product.sale_ok:
product.automatic_binding(True)
if not product._context.get('connector_no_export', False):
product.automatic_binding(True)

return product

Expand Down

0 comments on commit 24c7f2c

Please sign in to comment.