mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
fix: Fields Modification for Subcontracting DocTypes (#42383)
* fix: fields renaming and reordering for enhanced user experience
* fix: dashboard data for stock entry
(cherry picked from commit 302339998f)
# Conflicts:
# erpnext/subcontracting/doctype/subcontracting_order/subcontracting_order.json
This commit is contained in:
@@ -83,7 +83,8 @@
|
||||
"job_card",
|
||||
"amended_from",
|
||||
"credit_note",
|
||||
"is_return"
|
||||
"is_return",
|
||||
"tab_connections"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
@@ -683,6 +684,12 @@
|
||||
"label": "Asset Repair",
|
||||
"options": "Asset Repair",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "tab_connections",
|
||||
"fieldtype": "Tab Break",
|
||||
"label": "Connections",
|
||||
"show_dashboard": 1
|
||||
}
|
||||
],
|
||||
"icon": "fa fa-file-text",
|
||||
|
||||
26
erpnext/stock/doctype/stock_entry/stock_entry_dashboard.py
Normal file
26
erpnext/stock/doctype/stock_entry/stock_entry_dashboard.py
Normal file
@@ -0,0 +1,26 @@
|
||||
from frappe import _
|
||||
|
||||
|
||||
# Todo: non_standard_fieldnames is to be decided
|
||||
def get_data():
|
||||
return {
|
||||
"fieldname": "stock_entry",
|
||||
"non_standard_fieldnames": {
|
||||
# "DocType Name": "Reference field name",
|
||||
},
|
||||
"internal_links": {
|
||||
"Purchase Order": ["items", "purchase_order"],
|
||||
"Subcontracting Order": ["items", "subcontracting_order"],
|
||||
"Subcontracting Receipt": ["items", "subcontracting_receipt"],
|
||||
},
|
||||
"transactions": [
|
||||
{
|
||||
"label": _("Reference"),
|
||||
"items": [
|
||||
"Purchase Order",
|
||||
"Subcontracting Order",
|
||||
"Subcontracting Receipt",
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user