Skip to content

Commit

Permalink
Merge pull request #112 from priyankarani/task-7788
Browse files Browse the repository at this point in the history
Fix call to super method #7788
  • Loading branch information
tarunbhardwaj committed May 27, 2015
2 parents 6052ae8 + d42fe0a commit edb4d84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def import_products(self):

return map(int, products)

def import_product(self, magento_sku):
def import_product(self, sku):
"""
Import specific product for this magento channel
Expand All @@ -311,9 +311,9 @@ def import_product(self, magento_sku):
Product = Pool().get('product.product')

if self.source != 'magento':
return super(Channel, self).import_products()
return super(Channel, self).import_product(sku)

product = Product.find_using_magento_sku(magento_sku)
product = Product.find_using_magento_sku(sku)

if not product:
# if product is not found get the info from magento and
Expand All @@ -322,7 +322,7 @@ def import_product(self, magento_sku):
self.magento_url, self.magento_api_user,
self.magento_api_key
) as product_api:
product_data = product_api.info(magento_sku)
product_data = product_api.info(sku)

product = Product.create_using_magento_data(product_data)

Expand Down

0 comments on commit edb4d84

Please sign in to comment.