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, "onboard": 1,
"dependencies": ["Item"], "dependencies": ["Item"],
}, },
{
"type": "doctype",
"name": "Pick List",
"onboard": 1,
"dependencies": ["Item"],
},
{ {
"type": "doctype", "type": "doctype",
"name": "Delivery Trip" "name": "Delivery Trip"
@ -329,5 +335,5 @@ def get_data():
} }
] ]
}, },
] ]

View File

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

View File

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

View File

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

View File

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