fix: Made received qty readonly and no-copy

This commit is contained in:
Nabin Hait
2020-04-16 11:25:15 +05:30
parent 2b6942d9ce
commit 90adf076f3
2 changed files with 6 additions and 5 deletions

View File

@@ -513,7 +513,7 @@ def raise_work_orders(material_request):
msgprint(_("The following Work Orders were created:") + '\n' + new_line_sep(message)) msgprint(_("The following Work Orders were created:") + '\n' + new_line_sep(message))
if errors: if errors:
frappe.throw(_("Productions Orders cannot be raised for:") + '\n' + new_line_sep(errors)) frappe.throw(_("Work Order cannot be created for following reason:") + '\n' + new_line_sep(errors))
return work_orders return work_orders

View File

@@ -1,5 +1,4 @@
{ {
"actions": [],
"autoname": "hash", "autoname": "hash",
"creation": "2013-02-22 01:28:02", "creation": "2013-02-22 01:28:02",
"doctype": "DocType", "doctype": "DocType",
@@ -374,7 +373,10 @@
{ {
"fieldname": "received_qty", "fieldname": "received_qty",
"fieldtype": "Float", "fieldtype": "Float",
"label": "Received Quantity" "label": "Received Quantity",
"no_copy": 1,
"print_hide": 1,
"read_only": 1
}, },
{ {
"collapsible": 1, "collapsible": 1,
@@ -410,8 +412,7 @@
], ],
"idx": 1, "idx": 1,
"istable": 1, "istable": 1,
"links": [], "modified": "2020-04-16 09:00:00.992835",
"modified": "2020-02-25 03:09:10.698967",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Stock", "module": "Stock",
"name": "Material Request Item", "name": "Material Request Item",