mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 03:58:26 +00:00
removed Is Sales Item and Is Purchase Item
This commit is contained in:
@@ -24,7 +24,7 @@ class HubSettings(Document):
|
||||
def publish_selling_items(self):
|
||||
"""Set `publish_in_hub`=1 for all Sales Items"""
|
||||
for item in frappe.get_all("Item", fields=["name"],
|
||||
filters={"is_sales_item": 1, "publish_in_hub": "0"}):
|
||||
filters={ "publish_in_hub": "0"}):
|
||||
frappe.db.set_value("Item", item.name, "publish_in_hub", 1)
|
||||
|
||||
def register(self):
|
||||
|
||||
Reference in New Issue
Block a user