feat: Sync common items in ERPNext Integrations

This commit is contained in:
Deepesh Garg
2021-03-13 19:14:20 +05:30
parent 2b1809bd0e
commit 288082abfd
5 changed files with 147 additions and 0 deletions

View File

@@ -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) {
// }
});

View File

@@ -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
}

View File

@@ -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

View File

@@ -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