mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 00:01:18 +00:00
feat: track Semi-finished goods (including subcontracted items) against Job Cards (#38341)
* feat: Track Semi-finished goods (including subcontracted items) against Job Cards * feat: option to add raw materials manually against operation
This commit is contained in:
@@ -32,6 +32,7 @@ def after_install():
|
||||
add_standard_navbar_items()
|
||||
add_app_name()
|
||||
update_roles()
|
||||
make_default_operations()
|
||||
frappe.db.commit()
|
||||
|
||||
|
||||
@@ -42,6 +43,14 @@ You can reinstall this site (after saving your data) using: bench --site [sitena
|
||||
frappe.throw(message) # nosemgrep
|
||||
|
||||
|
||||
def make_default_operations():
|
||||
for operation in ["Assembly"]:
|
||||
if not frappe.db.exists("Operation", operation):
|
||||
doc = frappe.get_doc({"doctype": "Operation", "name": operation})
|
||||
doc.flags.ignore_mandatory = True
|
||||
doc.insert(ignore_permissions=True)
|
||||
|
||||
|
||||
def set_single_defaults():
|
||||
for dt in (
|
||||
"Accounts Settings",
|
||||
|
||||
Reference in New Issue
Block a user