Merge branch 'master' of github.com:webnotes/erpnext into edge
This commit is contained in:
commit
c8580930eb
@ -106,6 +106,9 @@ class DocType(BuyingController):
|
|||||||
utilities.validate_status(self.doc.status, ["Draft", "Submitted", "Stopped",
|
utilities.validate_status(self.doc.status, ["Draft", "Submitted", "Stopped",
|
||||||
"Cancelled"])
|
"Cancelled"])
|
||||||
|
|
||||||
|
# restrict material request type
|
||||||
|
self.validate_value("material_request_type", "in", ["Purchase", "Transfer"])
|
||||||
|
|
||||||
# Get Purchase Common Obj
|
# Get Purchase Common Obj
|
||||||
pc_obj = get_obj(dt='Purchase Common')
|
pc_obj = get_obj(dt='Purchase Common')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user