[revert] is_sales_item, is_purchase_item back

This commit is contained in:
Rushabh Mehta
2016-08-16 11:32:08 +05:30
parent de08639d49
commit d973c1606a
8 changed files with 66 additions and 36 deletions

View File

@@ -11,7 +11,7 @@ import random
def make_sample_data():
"""Create a few opportunities, quotes, material requests, issues, todos, projects
to help the user get started"""
items = frappe.get_all("Item")
items = frappe.get_all("Item", {'is_sales_item': 1})
customers = frappe.get_all("Customer")
warehouses = frappe.get_all("Warehouse")
@@ -25,7 +25,7 @@ def make_sample_data():
make_projects()
if items and warehouses:
make_material_request(items)
make_material_request(frappe.get_all("Item"))
frappe.db.commit()

View File

@@ -318,6 +318,8 @@ def create_items(args):
"item_name": item,
"description": item,
"show_in_website": 1,
"is_sales_item": is_sales_item,
"is_purchase_item": is_purchase_item,
"is_stock_item": is_stock_item and 1 or 0,
"item_group": item_group,
"stock_uom": args.get("item_uom_" + str(i)),