fix: Doctype changes

- Check no copy for work order series field
- Add dashboard
- Set naming_series for pick list
This commit is contained in:
Suraj Shetty 2019-08-28 12:40:26 +05:30
parent 8f32ac0edd
commit be0ae7a430
5 changed files with 27 additions and 7 deletions

View File

@ -30,6 +30,12 @@ def get_data():
"onboard": 1,
"dependencies": ["Item"],
},
{
"type": "doctype",
"name": "Pick List",
"onboard": 1,
"dependencies": ["Item"],
},
{
"type": "doctype",
"name": "Delivery Trip"
@ -329,5 +335,5 @@ def get_data():
}
]
},
]

View File

@ -72,6 +72,7 @@
"fieldname": "naming_series",
"fieldtype": "Select",
"label": "Series",
"no_copy": 1,
"options": "MFG-WO-.YYYY.-",
"print_hide": 1,
"reqd": 1,
@ -467,7 +468,7 @@
"idx": 1,
"image_field": "image",
"is_submittable": 1,
"modified": "2019-07-31 00:13:38.218277",
"modified": "2019-08-28 12:29:35.315239",
"modified_by": "Administrator",
"module": "Manufacturing",
"name": "Work Order",

View File

@ -3,6 +3,10 @@
frappe.ui.form.on('Pick List', {
setup: (frm) => {
frm.custom_make_buttons = {
'Delivery Note': 'Delivery Note',
'Stock Entry': 'Stock Entry',
};
frm.set_query('parent_warehouse', () => {
return {
filters: {

View File

@ -1,10 +1,12 @@
{
"autoname": "PICK.####",
"autoname": "naming_series:",
"creation": "2019-07-11 16:03:13.681045",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"naming_series",
"company",
"purpose",
"customer",
"work_order",
@ -12,7 +14,6 @@
"for_qty",
"column_break_4",
"parent_warehouse",
"company",
"section_break_4",
"items",
"get_item_locations",
@ -112,10 +113,18 @@
"fieldname": "get_item_locations",
"fieldtype": "Button",
"label": "Get Item Locations"
},
{
"fieldname": "naming_series",
"fieldtype": "Select",
"label": "Series",
"options": "STO-PICK-.YYYY.-",
"reqd": 1,
"set_only_once": 1
}
],
"is_submittable": 1,
"modified": "2019-08-27 21:24:50.609986",
"modified": "2019-08-28 12:27:22.743705",
"modified_by": "Administrator",
"module": "Stock",
"name": "Pick List",

View File

@ -113,7 +113,7 @@
"fieldname": "stock_qty",
"fieldtype": "Float",
"in_list_view": 1,
"label": "Qty as per Stock UOM",
"label": "Qty (Stock UOM)",
"read_only": 1
},
{
@ -171,7 +171,7 @@
}
],
"istable": 1,
"modified": "2019-08-27 08:44:04.173333",
"modified": "2019-08-28 12:34:06.224534",
"modified_by": "Administrator",
"module": "Stock",
"name": "Pick List Item",