From e076b5a14c498f7b6a3921f594efd10bc4bd972d Mon Sep 17 00:00:00 2001 From: rocketdebris Date: Tue, 28 Oct 2025 13:05:00 -0400 Subject: [PATCH] Added the custom Stock information field on the Item doctype. --- uberleben_custom/fixtures/custom_field.json | 59 +++++++++++++++++++++ uberleben_custom/hooks.py | 1 + 2 files changed, 60 insertions(+) create mode 100644 uberleben_custom/fixtures/custom_field.json diff --git a/uberleben_custom/fixtures/custom_field.json b/uberleben_custom/fixtures/custom_field.json new file mode 100644 index 0000000..3de02da --- /dev/null +++ b/uberleben_custom/fixtures/custom_field.json @@ -0,0 +1,59 @@ +[ + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_stock_information", + "fieldtype": "Long Text", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 1, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "stock_uom", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Stock Information", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-10-21 16:44:07.296009", + "module": null, + "name": "Item-custom_stock_information", + "no_copy": 0, + "non_negative": 0, + "options": null, + "permlevel": 0, + "placeholder": "Stock Details Per Warehouse", + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + } +] \ No newline at end of file diff --git a/uberleben_custom/hooks.py b/uberleben_custom/hooks.py index 4ba7976..0a1bd9e 100644 --- a/uberleben_custom/hooks.py +++ b/uberleben_custom/hooks.py @@ -26,6 +26,7 @@ add_to_apps_screen = [ fixtures = [ {"doctype": "Client Script", "filters": [["module", "=", "Uberleben Customizations"]]}, + {"doctype": "Custom Field", "filters": [["dt", "in", "Item"]]}, "Custom HTML Block", "Warehouse" ]