mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-03 16:40:19 +00:00
[revert] is_sales_item, is_purchase_item back
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user