-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fields Modification for Subcontracting DocTypes (#42383)
* fix: fields renaming and reordering for enhanced user experience * fix: dashboard data for stock entry
- Loading branch information
Showing
4 changed files
with
120 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
erpnext/stock/doctype/stock_entry/stock_entry_dashboard.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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", | ||
], | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters