commit | 6575a615b16db80e76f9c1df355e23f18d169950 | [log] [tgz] |
---|---|---|
author | tunde <tundebabzy@gmail.com> | Thu Oct 26 14:30:18 2017 +0100 |
committer | tunde <tundebabzy@gmail.com> | Thu Oct 26 14:30:18 2017 +0100 |
tree | ff41c293970c92081603ed7c0702d1a75e41fab6 | |
parent | 14e97ce0c8ac1616b863d55320f535b940f9e09e [diff] |
get attribute with get method
diff --git a/erpnext/stock/doctype/item/item.py b/erpnext/stock/doctype/item/item.py index 4b4f15b..bf8eaba 100644 --- a/erpnext/stock/doctype/item/item.py +++ b/erpnext/stock/doctype/item/item.py
@@ -57,7 +57,7 @@ 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):