Merge pull request #11356 from tundebabzy/issue-11355

fix object has not attribute 'is_item_from_hub'
This commit is contained in:
Saurabh 2017-10-31 12:23:09 +05:30 committed by GitHub
commit dd0bdc7fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ class Item(WebsiteGenerator):
if not self.description:
self.description = self.item_name
if self.is_sales_item and not self.is_item_from_hub:
if self.is_sales_item and not self.get('is_item_from_hub'):
self.publish_in_hub = 1
def after_insert(self):