changed description in production order, syntax fix in stock entry.py
This commit is contained in:
parent
ab5cf08c14
commit
6c92a56cae
@ -2,9 +2,9 @@
|
|||||||
{
|
{
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"creation": "2012-12-19 12:29:07",
|
"creation": "2012-12-19 22:39:06",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"modified": "2012-12-19 17:45:59"
|
"modified": "2012-12-20 13:57:10"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
@ -22,18 +22,12 @@
|
|||||||
"parentfield": "fields"
|
"parentfield": "fields"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"name": "__common__",
|
||||||
"parent": "Production Order",
|
"parent": "Production Order",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"cancel": 1,
|
|
||||||
"name": "__common__",
|
|
||||||
"amend": 1,
|
|
||||||
"create": 1,
|
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
|
||||||
"write": 1,
|
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"role": "Manufacturing User",
|
"role": "Manufacturing User",
|
||||||
"permlevel": 0,
|
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -82,7 +76,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"read_only": 0,
|
"read_only": 0,
|
||||||
"description": "Update Planned Quantity in this Warehouse",
|
"description": "Manufactured quantity will be updated in this warehouse",
|
||||||
"depends_on": "production_item",
|
"depends_on": "production_item",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "For Warehouse",
|
"label": "For Warehouse",
|
||||||
@ -112,7 +106,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"read_only": 1,
|
"read_only": 1,
|
||||||
"description": "Automatically updated via Backflush (Stock Entry)",
|
"description": "Automatically updated via Stock Entry of type Manufacture/Repack",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -196,6 +190,16 @@
|
|||||||
"fieldtype": "Data"
|
"fieldtype": "Data"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm"
|
"amend": 1,
|
||||||
|
"create": 1,
|
||||||
|
"doctype": "DocPerm",
|
||||||
|
"submit": 1,
|
||||||
|
"write": 1,
|
||||||
|
"cancel": 1,
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocPerm",
|
||||||
|
"permlevel": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -136,7 +136,7 @@ class DocType(TransactionBase):
|
|||||||
+ _("Quantity already manufactured")
|
+ _("Quantity already manufactured")
|
||||||
+ " = %s." % flt(pro_obj.doc.produced_qty)
|
+ " = %s." % flt(pro_obj.doc.produced_qty)
|
||||||
+ _("Hence, maximum allowed Manufacturing Quantity")
|
+ _("Hence, maximum allowed Manufacturing Quantity")
|
||||||
+ " = %s." % flt(pro_obj.doc.qty) - flt(pro_obj.doc.produced_qty),
|
+ " = %s." % (flt(pro_obj.doc.qty) - flt(pro_obj.doc.produced_qty)),
|
||||||
raise_exception=1)
|
raise_exception=1)
|
||||||
elif self.doc.purpose != "Material Transfer":
|
elif self.doc.purpose != "Material Transfer":
|
||||||
self.doc.production_order = None
|
self.doc.production_order = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user