Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
gfcapalbo committed Sep 29, 2016
1 parent 844e862 commit 1d9eadc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions magentoerpconnect/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,9 @@ def categories(self, record):
# OpenERP assign 'All Products' if not specified
# skip main cat assignment if the current main category is already in
# categ_ids
if main_categ_id:
if self.backend_record.categ_id.id not in category_ids):
result['categ_id'] = main_categ_id
else:
result['categ_id'] = self.backend_record.categ_id.id
if (main_categ_id and
self.backend_record.categ_id.id not in category_ids):
result['categ_id'] = main_categ_id
return result

@mapping
Expand Down

0 comments on commit 1d9eadc

Please sign in to comment.