From 691096d8b123e6af039c9000a7566174b697c36e Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 21 Aug 2013 11:07:24 +0530 Subject: [PATCH] [fix] [minor] duplicate stock entry against production order --- stock/doctype/stock_entry/stock_entry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stock/doctype/stock_entry/stock_entry.py b/stock/doctype/stock_entry/stock_entry.py index 014e93e326..e3fc67e0fc 100644 --- a/stock/doctype/stock_entry/stock_entry.py +++ b/stock/doctype/stock_entry/stock_entry.py @@ -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: