From bbce7b7e5d436ea1f9cee4d17ef0272ff501f598 Mon Sep 17 00:00:00 2001 From: tunde Date: Thu, 26 Oct 2017 14:30:18 +0100 Subject: [PATCH] get attribute with get method --- erpnext/stock/doctype/item/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/item/item.py b/erpnext/stock/doctype/item/item.py index 4b4f15bf41..bf8eaba0a2 100644 --- a/erpnext/stock/doctype/item/item.py +++ b/erpnext/stock/doctype/item/item.py @@ -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):