[fix] [minor] duplicate stock entry against production order

This commit is contained in:
Nabin Hait 2013-08-21 11:07:24 +05:30
parent fe14f69e71
commit 691096d8b1

View File

@ -156,7 +156,8 @@ class DocType(StockController):
other_ste = [t[0] for t in webnotes.conn.get_values("Stock Entry", {
"production_order": self.doc.production_order,
"purpose": self.doc.purpose,
"docstatus": ["!=", 2]
"docstatus": ["!=", 2],
"name": ["!=", self.doc.name]
}, "name")]
if other_ste: