get attribute with get method

This commit is contained in:
tunde 2017-10-26 14:30:18 +01:00
parent 92e09c0b7b
commit bbce7b7e5d

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):