diff --git a/erpnext/erpnext_integrations/doctype/integration_item/__init__.py b/erpnext/erpnext_integrations/doctype/integration_item/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/erpnext/erpnext_integrations/doctype/integration_item/integration_item.js b/erpnext/erpnext_integrations/doctype/integration_item/integration_item.js new file mode 100644 index 00000000000..8111b20cb6a --- /dev/null +++ b/erpnext/erpnext_integrations/doctype/integration_item/integration_item.js @@ -0,0 +1,8 @@ +// Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Integration Item', { + // refresh: function(frm) { + + // } +}); diff --git a/erpnext/erpnext_integrations/doctype/integration_item/integration_item.json b/erpnext/erpnext_integrations/doctype/integration_item/integration_item.json new file mode 100644 index 00000000000..302d934bfdb --- /dev/null +++ b/erpnext/erpnext_integrations/doctype/integration_item/integration_item.json @@ -0,0 +1,119 @@ +{ + "actions": [], + "creation": "2021-03-13 12:24:28.511716", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "integration_item_name", + "erpnext_item_code" + ], + "fields": [ + { + "fieldname": "integration_item_name", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Integration Item Name", + "reqd": 1, + "unique": 1 + }, + { + "fieldname": "erpnext_item_code", + "fieldtype": "Link", + "in_list_view": 1, + "label": "ERPNext Item Code ", + "options": "Item", + "reqd": 1 + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2021-03-13 18:11:18.798940", + "modified_by": "Administrator", + "module": "ERPNext Integrations", + "name": "Integration Item", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "select": 1, + "share": 1, + "write": 1 + }, + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Item Manager", + "select": 1, + "share": 1, + "write": 1 + }, + { + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Stock User", + "select": 1, + "share": 1 + }, + { + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Sales User", + "select": 1, + "share": 1 + }, + { + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Purchase User", + "select": 1, + "share": 1 + }, + { + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Maintenance User", + "select": 1, + "share": 1 + }, + { + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Accounts User", + "select": 1, + "share": 1 + } + ], + "quick_entry": 1, + "sort_field": "modified", + "sort_order": "DESC", + "title_field": "integration_item_name", + "track_changes": 1 +} \ No newline at end of file diff --git a/erpnext/erpnext_integrations/doctype/integration_item/integration_item.py b/erpnext/erpnext_integrations/doctype/integration_item/integration_item.py new file mode 100644 index 00000000000..7bfcfd93e16 --- /dev/null +++ b/erpnext/erpnext_integrations/doctype/integration_item/integration_item.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors +# For license information, please see license.txt + +from __future__ import unicode_literals +# import frappe +from frappe.model.document import Document + +class IntegrationItem(Document): + pass diff --git a/erpnext/erpnext_integrations/doctype/integration_item/test_integration_item.py b/erpnext/erpnext_integrations/doctype/integration_item/test_integration_item.py new file mode 100644 index 00000000000..914b3c204c7 --- /dev/null +++ b/erpnext/erpnext_integrations/doctype/integration_item/test_integration_item.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and Contributors +# See license.txt +from __future__ import unicode_literals + +# import frappe +import unittest + +class TestIntegrationItem(unittest.TestCase): + pass