diff --git a/accounts/doctype/c_form/c_form.txt b/accounts/doctype/c_form/c_form.txt index 9243d362cd..79556abaa6 100644 --- a/accounts/doctype/c_form/c_form.txt +++ b/accounts/doctype/c_form/c_form.txt @@ -1,8 +1,8 @@ [ { - "creation": "2013-03-07 14:48:29", + "creation": "2013-03-07 11:55:06", "docstatus": 0, - "modified": "2013-02-13 11:29:18", + "modified": "2013-06-11 12:10:33", "modified_by": "Administrator", "owner": "Administrator" }, @@ -30,6 +30,7 @@ "parentfield": "permissions", "parenttype": "DocType", "read": 1, + "report": 1, "submit": 0 }, { @@ -123,9 +124,8 @@ { "doctype": "DocField", "fieldname": "state", - "fieldtype": "Link", + "fieldtype": "Data", "label": "State", - "options": "State", "read_only": 0, "reqd": 1 }, @@ -166,7 +166,6 @@ "create": 1, "doctype": "DocPerm", "permlevel": 0, - "report": 1, "role": "Accounts User", "write": 1 }, @@ -174,7 +173,6 @@ "create": 1, "doctype": "DocPerm", "permlevel": 0, - "report": 1, "role": "Accounts Manager", "write": 1 }, @@ -183,7 +181,6 @@ "cancel": 0, "create": 0, "doctype": "DocPerm", - "match": "", "permlevel": 1, "role": "All" } diff --git a/buying/doctype/supplier/supplier.py b/buying/doctype/supplier/supplier.py index d41b86c32c..0c3c2b03d6 100644 --- a/buying/doctype/supplier/supplier.py +++ b/buying/doctype/supplier/supplier.py @@ -58,9 +58,6 @@ class DocType(TransactionBase): # update credit days and limit in account self.update_credit_days_limit() - - def check_state(self): - return "\n" + "\n".join([i[0] for i in sql("select state_name from `tabState` where `tabState`.country='%s' " % self.doc.country)]) def get_payables_group(self): g = sql("select payables_group from tabCompany where name=%s", self.doc.company) diff --git a/setup/doctype/market_segment/__init__.py b/setup/doctype/market_segment/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/setup/doctype/market_segment/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/setup/doctype/market_segment/locale/_messages_doc.json b/setup/doctype/market_segment/locale/_messages_doc.json deleted file mode 100644 index fa857630aa..0000000000 --- a/setup/doctype/market_segment/locale/_messages_doc.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - "Trash Reason", - "Segment Name", - "Setup", - "Details", - "Market Segment" -] \ No newline at end of file diff --git a/setup/doctype/market_segment/locale/ar-doc.json b/setup/doctype/market_segment/locale/ar-doc.json deleted file mode 100644 index 2767c8441d..0000000000 --- a/setup/doctype/market_segment/locale/ar-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Details": "\u062a\u0641\u0627\u0635\u064a\u0644", - "Market Segment": "\u0633\u0648\u0642 \u0627\u0644\u0642\u0637\u0627\u0639", - "Segment Name": "\u0627\u0644\u062c\u0632\u0621 \u0627\u0633\u0645", - "Setup": "\u0627\u0644\u0625\u0639\u062f\u0627\u062f", - "Trash Reason": "\u0627\u0644\u0633\u0628\u0628 \u0627\u0644\u0642\u0645\u0627\u0645\u0629" -} \ No newline at end of file diff --git a/setup/doctype/market_segment/locale/de-doc.json b/setup/doctype/market_segment/locale/de-doc.json deleted file mode 100644 index f8ad0b85ee..0000000000 --- a/setup/doctype/market_segment/locale/de-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Details": "Details", - "Market Segment": "Market Segment", - "Segment Name": "Segment Name", - "Setup": "Setup", - "Trash Reason": "Trash Reason" -} \ No newline at end of file diff --git a/setup/doctype/market_segment/locale/es-doc.json b/setup/doctype/market_segment/locale/es-doc.json deleted file mode 100644 index adfb9d2259..0000000000 --- a/setup/doctype/market_segment/locale/es-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Details": "Detalles", - "Market Segment": "Sector de mercado", - "Segment Name": "Segmento Nombre", - "Setup": "Disposici\u00f3n", - "Trash Reason": "Trash Raz\u00f3n" -} \ No newline at end of file diff --git a/setup/doctype/market_segment/locale/fr-doc.json b/setup/doctype/market_segment/locale/fr-doc.json deleted file mode 100644 index 3b58224dc4..0000000000 --- a/setup/doctype/market_segment/locale/fr-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Details": "D\u00e9tails", - "Market Segment": "Segment de march\u00e9", - "Segment Name": "Nom du segment", - "Setup": "Installation", - "Trash Reason": "Raison Corbeille" -} \ No newline at end of file diff --git a/setup/doctype/market_segment/locale/hi-doc.json b/setup/doctype/market_segment/locale/hi-doc.json deleted file mode 100644 index dba08f4f8f..0000000000 --- a/setup/doctype/market_segment/locale/hi-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Details": "\u0935\u093f\u0935\u0930\u0923", - "Market Segment": "\u092c\u093e\u091c\u093e\u0930 \u0916\u0902\u0921", - "Segment Name": "\u0916\u0923\u094d\u0921 \u0928\u093e\u092e", - "Setup": "\u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e", - "Trash Reason": "\u091f\u094d\u0930\u0948\u0936 \u0915\u093e\u0930\u0923" -} \ No newline at end of file diff --git a/setup/doctype/market_segment/locale/hr-doc.json b/setup/doctype/market_segment/locale/hr-doc.json deleted file mode 100644 index 9a3f5df2e9..0000000000 --- a/setup/doctype/market_segment/locale/hr-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Details": "Detalji", - "Market Segment": "Tr\u017ei\u0161ni segment", - "Segment Name": "Segment Ime", - "Setup": "Postavljanje", - "Trash Reason": "Otpad Razlog" -} \ No newline at end of file diff --git a/setup/doctype/market_segment/locale/nl-doc.json b/setup/doctype/market_segment/locale/nl-doc.json deleted file mode 100644 index 2299482d43..0000000000 --- a/setup/doctype/market_segment/locale/nl-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Details": "Details", - "Market Segment": "Marktsegment", - "Segment Name": "Segment Naam", - "Setup": "Setup", - "Trash Reason": "Trash Reden" -} \ No newline at end of file diff --git a/setup/doctype/market_segment/locale/pt-BR-doc.json b/setup/doctype/market_segment/locale/pt-BR-doc.json deleted file mode 100644 index d22b0330d6..0000000000 --- a/setup/doctype/market_segment/locale/pt-BR-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Details": "Detalhes", - "Market Segment": "Segmento de mercado", - "Segment Name": "Nome do Segmento", - "Setup": "Configura\u00e7\u00e3o", - "Trash Reason": "Raz\u00e3o de p\u00f4r no lixo" -} \ No newline at end of file diff --git a/setup/doctype/market_segment/locale/pt-doc.json b/setup/doctype/market_segment/locale/pt-doc.json deleted file mode 100644 index 7b46049223..0000000000 --- a/setup/doctype/market_segment/locale/pt-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Details": "Detalhes", - "Market Segment": "Segmento de mercado", - "Segment Name": "Nome segmento", - "Setup": "Instala\u00e7\u00e3o", - "Trash Reason": "Raz\u00e3o lixo" -} \ No newline at end of file diff --git a/setup/doctype/market_segment/locale/sr-doc.json b/setup/doctype/market_segment/locale/sr-doc.json deleted file mode 100644 index 45456cd0fc..0000000000 --- a/setup/doctype/market_segment/locale/sr-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Details": "\u0414\u0435\u0442\u0430\u0459\u0438", - "Market Segment": "\u0421\u0435\u0433\u043c\u0435\u043d\u0442 \u0442\u0440\u0436\u0438\u0448\u0442\u0430", - "Segment Name": "\u0421\u0435\u0433\u043c\u0435\u043d\u0442 \u041d\u0430\u0437\u0438\u0432", - "Setup": "\u041d\u0430\u043c\u0435\u0448\u0442\u0430\u0459\u043a\u0430", - "Trash Reason": "\u0421\u043c\u0435\u045b\u0435 \u0420\u0430\u0437\u043b\u043e\u0433" -} \ No newline at end of file diff --git a/setup/doctype/market_segment/locale/ta-doc.json b/setup/doctype/market_segment/locale/ta-doc.json deleted file mode 100644 index b797c5468d..0000000000 --- a/setup/doctype/market_segment/locale/ta-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Details": "\u0bb5\u0bbf\u0bb5\u0bb0\u0bae\u0bcd", - "Market Segment": "\u0b9a\u0ba8\u0bcd\u0ba4\u0bc8 \u0baa\u0bbf\u0bb0\u0bbf\u0bb5\u0bc1", - "Segment Name": "\u0baa\u0bbf\u0bb0\u0bbf\u0bb5\u0bbf\u0bb2\u0bcd \u0baa\u0bc6\u0baf\u0bb0\u0bcd", - "Setup": "\u0b85\u0bae\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0bae\u0bc1\u0bb1\u0bc8", - "Trash Reason": "\u0b95\u0bc1\u0baa\u0bcd\u0baa\u0bc8 \u0b95\u0bbe\u0bb0\u0ba3\u0bae\u0bcd" -} \ No newline at end of file diff --git a/setup/doctype/market_segment/locale/th-doc.json b/setup/doctype/market_segment/locale/th-doc.json deleted file mode 100644 index 42144b248d..0000000000 --- a/setup/doctype/market_segment/locale/th-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Details": "\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14", - "Market Segment": "\u0e2a\u0e48\u0e27\u0e19\u0e15\u0e25\u0e32\u0e14", - "Segment Name": "\u0e0a\u0e37\u0e48\u0e2d\u0e2a\u0e48\u0e27\u0e19", - "Setup": "\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07", - "Trash Reason": "\u0e40\u0e2b\u0e15\u0e38\u0e1c\u0e25\u0e16\u0e31\u0e07\u0e02\u0e22\u0e30" -} \ No newline at end of file diff --git a/setup/doctype/market_segment/market_segment.py b/setup/doctype/market_segment/market_segment.py deleted file mode 100644 index 7f48feb2eb..0000000000 --- a/setup/doctype/market_segment/market_segment.py +++ /dev/null @@ -1,22 +0,0 @@ -# ERPNext - web based ERP (http://erpnext.com) -# Copyright (C) 2012 Web Notes Technologies Pvt Ltd -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -from __future__ import unicode_literals -import webnotes - -class DocType: - def __init__(self, d, dl): - self.doc, self.doclist = d, dl \ No newline at end of file diff --git a/setup/doctype/market_segment/market_segment.txt b/setup/doctype/market_segment/market_segment.txt deleted file mode 100644 index a5da46749b..0000000000 --- a/setup/doctype/market_segment/market_segment.txt +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "creation": "2013-01-10 16:34:23", - "docstatus": 0, - "modified": "2013-01-22 14:47:03", - "modified_by": "Administrator", - "owner": "Administrator" - }, - { - "autoname": "field:segment_name", - "doctype": "DocType", - "in_create": 1, - "module": "Setup", - "name": "__common__", - "name_case": "Title Case", - "read_only": 0 - }, - { - "doctype": "DocField", - "name": "__common__", - "parent": "Market Segment", - "parentfield": "fields", - "parenttype": "DocType", - "permlevel": 0 - }, - { - "doctype": "DocType", - "name": "Market Segment" - }, - { - "doctype": "DocField", - "fieldname": "trash_reason", - "fieldtype": "Small Text", - "label": "Trash Reason", - "oldfieldname": "trash_reason", - "oldfieldtype": "Small Text", - "read_only": 1 - }, - { - "doctype": "DocField", - "fieldname": "segment_name", - "fieldtype": "Data", - "label": "Segment Name", - "oldfieldname": "segment_name", - "oldfieldtype": "Data", - "reqd": 1 - }, - { - "doctype": "DocField", - "fieldname": "details", - "fieldtype": "Text", - "label": "Details", - "oldfieldname": "details", - "oldfieldtype": "Text" - } -] \ No newline at end of file diff --git a/setup/doctype/naming_series_options/__init__.py b/setup/doctype/naming_series_options/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/setup/doctype/naming_series_options/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/setup/doctype/naming_series_options/locale/_messages_doc.json b/setup/doctype/naming_series_options/locale/_messages_doc.json deleted file mode 100644 index fc18b56f74..0000000000 --- a/setup/doctype/naming_series_options/locale/_messages_doc.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - "Naming Series Options", - "Setup", - "Doc Type", - "Series Options" -] \ No newline at end of file diff --git a/setup/doctype/naming_series_options/locale/ar-doc.json b/setup/doctype/naming_series_options/locale/ar-doc.json deleted file mode 100644 index f79d1d2937..0000000000 --- a/setup/doctype/naming_series_options/locale/ar-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "\u0646\u0648\u0639 \u0627\u0644\u0648\u062b\u064a\u0642\u0629", - "Naming Series Options": "\u062e\u064a\u0627\u0631\u0627\u062a \u062a\u0633\u0645\u064a\u0629 \u0627\u0644\u0633\u0644\u0633\u0644\u0629", - "Series Options": "\u0633\u0644\u0633\u0644\u0629 \u062e\u064a\u0627\u0631\u0627\u062a", - "Setup": "\u0627\u0644\u0625\u0639\u062f\u0627\u062f" -} \ No newline at end of file diff --git a/setup/doctype/naming_series_options/locale/de-doc.json b/setup/doctype/naming_series_options/locale/de-doc.json deleted file mode 100644 index c07d638134..0000000000 --- a/setup/doctype/naming_series_options/locale/de-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Doc Type", - "Naming Series Options": "Benennen Optionen Series", - "Series Options": "Serie Optionen", - "Setup": "Setup" -} \ No newline at end of file diff --git a/setup/doctype/naming_series_options/locale/es-doc.json b/setup/doctype/naming_series_options/locale/es-doc.json deleted file mode 100644 index b1e12093de..0000000000 --- a/setup/doctype/naming_series_options/locale/es-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Tipo Doc.", - "Naming Series Options": "Nombrar Opciones de serie", - "Series Options": "Opciones de serie", - "Setup": "Disposici\u00f3n" -} \ No newline at end of file diff --git a/setup/doctype/naming_series_options/locale/fr-doc.json b/setup/doctype/naming_series_options/locale/fr-doc.json deleted file mode 100644 index 53a24be4db..0000000000 --- a/setup/doctype/naming_series_options/locale/fr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Doc Type d'", - "Naming Series Options": "Nommer Options des s\u00e9ries", - "Series Options": "Options des s\u00e9ries", - "Setup": "Installation" -} \ No newline at end of file diff --git a/setup/doctype/naming_series_options/locale/hi-doc.json b/setup/doctype/naming_series_options/locale/hi-doc.json deleted file mode 100644 index e970fe490f..0000000000 --- a/setup/doctype/naming_series_options/locale/hi-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "\u0921\u0949\u0915\u094d\u091f\u0930 \u0915\u0947 \u092a\u094d\u0930\u0915\u093e\u0930", - "Naming Series Options": "\u0936\u094d\u0930\u0943\u0902\u0916\u0932\u093e \u0935\u093f\u0915\u0932\u094d\u092a \u0928\u093e\u092e\u0915\u0930\u0923", - "Series Options": "\u0936\u094d\u0930\u0943\u0902\u0916\u0932\u093e \u0935\u093f\u0915\u0932\u094d\u092a", - "Setup": "\u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e" -} \ No newline at end of file diff --git a/setup/doctype/naming_series_options/locale/hr-doc.json b/setup/doctype/naming_series_options/locale/hr-doc.json deleted file mode 100644 index 7dc2fb6f38..0000000000 --- a/setup/doctype/naming_series_options/locale/hr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Doc Tip", - "Naming Series Options": "Imenovanje Serija isporuke", - "Series Options": "Serija Opcije", - "Setup": "Postavljanje" -} \ No newline at end of file diff --git a/setup/doctype/naming_series_options/locale/nl-doc.json b/setup/doctype/naming_series_options/locale/nl-doc.json deleted file mode 100644 index 0f6114ea17..0000000000 --- a/setup/doctype/naming_series_options/locale/nl-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Doc Type", - "Naming Series Options": "Benoemen Reeksopties", - "Series Options": "Reeksopties", - "Setup": "Setup" -} \ No newline at end of file diff --git a/setup/doctype/naming_series_options/locale/pt-BR-doc.json b/setup/doctype/naming_series_options/locale/pt-BR-doc.json deleted file mode 100644 index 080f44dee7..0000000000 --- a/setup/doctype/naming_series_options/locale/pt-BR-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Tipo do Documento", - "Naming Series Options": "Op\u00e7\u00f5es das S\u00e9ries nomeadas", - "Series Options": "Op\u00e7\u00f5es de S\u00e9ries", - "Setup": "Configura\u00e7\u00e3o" -} \ No newline at end of file diff --git a/setup/doctype/naming_series_options/locale/pt-doc.json b/setup/doctype/naming_series_options/locale/pt-doc.json deleted file mode 100644 index 76d9465a51..0000000000 --- a/setup/doctype/naming_series_options/locale/pt-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Tipo Doc", - "Naming Series Options": "Nomeando S\u00e9rie Op\u00e7\u00f5es", - "Series Options": "Op\u00e7\u00f5es de S\u00e9rie", - "Setup": "Instala\u00e7\u00e3o" -} \ No newline at end of file diff --git a/setup/doctype/naming_series_options/locale/sr-doc.json b/setup/doctype/naming_series_options/locale/sr-doc.json deleted file mode 100644 index df84b8eb9c..0000000000 --- a/setup/doctype/naming_series_options/locale/sr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "\u0414\u043e\u043a \u0422\u0438\u043f", - "Naming Series Options": "\u0418\u043c\u0435\u043d\u043e\u0432\u0430\u045a\u0435 \u0441\u0435\u0440\u0438\u0458\u0435 \u041e\u043f\u0446\u0438\u0458\u0435", - "Series Options": "\u0421\u0435\u0440\u0438\u0458\u0430 \u041e\u043f\u0446\u0438\u0458\u0435", - "Setup": "\u041d\u0430\u043c\u0435\u0448\u0442\u0430\u0459\u043a\u0430" -} \ No newline at end of file diff --git a/setup/doctype/naming_series_options/locale/ta-doc.json b/setup/doctype/naming_series_options/locale/ta-doc.json deleted file mode 100644 index 0b4bb46042..0000000000 --- a/setup/doctype/naming_series_options/locale/ta-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Doc \u0bb5\u0b95\u0bc8", - "Naming Series Options": "\u0ba4\u0bc6\u0bbe\u0b9f\u0bb0\u0bcd \u0bb5\u0bbf\u0bb0\u0bc1\u0baa\u0bcd\u0baa\u0b99\u0bcd\u0b95\u0bb3\u0bcd \u0baa\u0bc6\u0baf\u0bb0\u0bbf\u0b9f\u0bc1\u0bae\u0bcd", - "Series Options": "\u0ba4\u0bc6\u0bbe\u0b9f\u0bb0\u0bcd \u0bb5\u0bbf\u0bb0\u0bc1\u0baa\u0bcd\u0baa\u0b99\u0bcd\u0b95\u0bb3\u0bcd", - "Setup": "\u0b85\u0bae\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0bae\u0bc1\u0bb1\u0bc8" -} \ No newline at end of file diff --git a/setup/doctype/naming_series_options/locale/th-doc.json b/setup/doctype/naming_series_options/locale/th-doc.json deleted file mode 100644 index 0202a37a50..0000000000 --- a/setup/doctype/naming_series_options/locale/th-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17 Doc", - "Naming Series Options": "\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e0a\u0e37\u0e48\u0e2d\u0e15\u0e31\u0e27\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e0a\u0e38\u0e14", - "Series Options": "\u0e15\u0e31\u0e27\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e0a\u0e38\u0e14", - "Setup": "\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07" -} \ No newline at end of file diff --git a/setup/doctype/naming_series_options/naming_series_options.py b/setup/doctype/naming_series_options/naming_series_options.py deleted file mode 100644 index 7f48feb2eb..0000000000 --- a/setup/doctype/naming_series_options/naming_series_options.py +++ /dev/null @@ -1,22 +0,0 @@ -# ERPNext - web based ERP (http://erpnext.com) -# Copyright (C) 2012 Web Notes Technologies Pvt Ltd -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -from __future__ import unicode_literals -import webnotes - -class DocType: - def __init__(self, d, dl): - self.doc, self.doclist = d, dl \ No newline at end of file diff --git a/setup/doctype/naming_series_options/naming_series_options.txt b/setup/doctype/naming_series_options/naming_series_options.txt deleted file mode 100644 index c95af3d41e..0000000000 --- a/setup/doctype/naming_series_options/naming_series_options.txt +++ /dev/null @@ -1,63 +0,0 @@ -[ - { - "creation": "2012-03-27 14:36:21", - "docstatus": 0, - "modified": "2012-03-27 14:36:21", - "modified_by": "Administrator", - "owner": "Administrator" - }, - { - "autoname": "__NSO.#####", - "doctype": "DocType", - "in_create": 1, - "module": "Setup", - "name": "__common__", - "read_only": 0, - "section_style": "Simple", - "show_in_menu": 0, - "version": 5 - }, - { - "doctype": "DocField", - "name": "__common__", - "parent": "Naming Series Options", - "parentfield": "fields", - "parenttype": "DocType", - "permlevel": 0 - }, - { - "doctype": "DocPerm", - "name": "__common__", - "parent": "Naming Series Options", - "parentfield": "permissions", - "parenttype": "DocType", - "permlevel": 0, - "read": 1, - "report": 1, - "role": "System Manager" - }, - { - "doctype": "DocType", - "name": "Naming Series Options" - }, - { - "doctype": "DocPerm" - }, - { - "doctype": "DocField", - "fieldname": "doc_type", - "fieldtype": "Data", - "label": "Doc Type", - "oldfieldname": "doc_type", - "oldfieldtype": "Data", - "search_index": 1 - }, - { - "doctype": "DocField", - "fieldname": "series_options", - "fieldtype": "Text", - "label": "Series Options", - "oldfieldname": "series_options", - "oldfieldtype": "Text" - } -] \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/_messages_doc.json b/setup/doctype/permission_control/locale/_messages_doc.json deleted file mode 100644 index c0b34c9f54..0000000000 --- a/setup/doctype/permission_control/locale/_messages_doc.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - "Permission Control", - "Setup" -] \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/ar-doc.json b/setup/doctype/permission_control/locale/ar-doc.json deleted file mode 100644 index a20cda36d8..0000000000 --- a/setup/doctype/permission_control/locale/ar-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Permission Control": "\u0625\u0630\u0646 \u0627\u0644\u062a\u062d\u0643\u0645", - "Setup": "\u0627\u0644\u0625\u0639\u062f\u0627\u062f" -} \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/de-doc.json b/setup/doctype/permission_control/locale/de-doc.json deleted file mode 100644 index ca1bf25a0b..0000000000 --- a/setup/doctype/permission_control/locale/de-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Permission Control": "Permission Steuerung", - "Setup": "Setup" -} \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/es-doc.json b/setup/doctype/permission_control/locale/es-doc.json deleted file mode 100644 index c938e9c9ca..0000000000 --- a/setup/doctype/permission_control/locale/es-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Permission Control": "Permiso de Control", - "Setup": "Disposici\u00f3n" -} \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/fr-doc.json b/setup/doctype/permission_control/locale/fr-doc.json deleted file mode 100644 index d5001ab4f9..0000000000 --- a/setup/doctype/permission_control/locale/fr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Permission Control": "L'autorisation Contr\u00f4le", - "Setup": "Installation" -} \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/hi-doc.json b/setup/doctype/permission_control/locale/hi-doc.json deleted file mode 100644 index 0e180c2bbd..0000000000 --- a/setup/doctype/permission_control/locale/hi-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Permission Control": "\u0905\u0928\u0941\u092e\u0924\u093f \u0928\u093f\u092f\u0902\u0924\u094d\u0930\u0923", - "Setup": "\u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e" -} \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/hr-doc.json b/setup/doctype/permission_control/locale/hr-doc.json deleted file mode 100644 index 7f2e06ee35..0000000000 --- a/setup/doctype/permission_control/locale/hr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Permission Control": "Dopu\u0161tenje kontrola", - "Setup": "Postavljanje" -} \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/nl-doc.json b/setup/doctype/permission_control/locale/nl-doc.json deleted file mode 100644 index 65978027d4..0000000000 --- a/setup/doctype/permission_control/locale/nl-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Permission Control": "Toestemming Controle", - "Setup": "Setup" -} \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/pt-BR-doc.json b/setup/doctype/permission_control/locale/pt-BR-doc.json deleted file mode 100644 index aaec649143..0000000000 --- a/setup/doctype/permission_control/locale/pt-BR-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Permission Control": "Controle de Permiss\u00e3o", - "Setup": "Configura\u00e7\u00e3o" -} \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/pt-doc.json b/setup/doctype/permission_control/locale/pt-doc.json deleted file mode 100644 index 8652cfcf29..0000000000 --- a/setup/doctype/permission_control/locale/pt-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Permission Control": "Controle de permiss\u00e3o", - "Setup": "Instala\u00e7\u00e3o" -} \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/sr-doc.json b/setup/doctype/permission_control/locale/sr-doc.json deleted file mode 100644 index 69eac91280..0000000000 --- a/setup/doctype/permission_control/locale/sr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Permission Control": "\u0414\u043e\u0437\u0432\u043e\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435", - "Setup": "\u041d\u0430\u043c\u0435\u0448\u0442\u0430\u0459\u043a\u0430" -} \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/ta-doc.json b/setup/doctype/permission_control/locale/ta-doc.json deleted file mode 100644 index a9b5db0274..0000000000 --- a/setup/doctype/permission_control/locale/ta-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Permission Control": "\u0b85\u0ba9\u0bc1\u0bae\u0ba4\u0bbf \u0b95\u0b9f\u0bcd\u0b9f\u0bc1\u0baa\u0bcd\u0baa\u0bbe\u0b9f\u0bc1", - "Setup": "\u0b85\u0bae\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0bae\u0bc1\u0bb1\u0bc8" -} \ No newline at end of file diff --git a/setup/doctype/permission_control/locale/th-doc.json b/setup/doctype/permission_control/locale/th-doc.json deleted file mode 100644 index fdb7c4f9cb..0000000000 --- a/setup/doctype/permission_control/locale/th-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Permission Control": "\u0e01\u0e32\u0e23\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e01\u0e32\u0e23\u0e2d\u0e19\u0e38\u0e0d\u0e32\u0e15", - "Setup": "\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/__init__.py b/setup/doctype/sales_browser_control/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/setup/doctype/sales_browser_control/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/setup/doctype/sales_browser_control/locale/_messages_doc.json b/setup/doctype/sales_browser_control/locale/_messages_doc.json deleted file mode 100644 index 7418dd554f..0000000000 --- a/setup/doctype/sales_browser_control/locale/_messages_doc.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - "Setup", - "Sales Browser Control" -] \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/locale/ar-doc.json b/setup/doctype/sales_browser_control/locale/ar-doc.json deleted file mode 100644 index fa2400255e..0000000000 --- a/setup/doctype/sales_browser_control/locale/ar-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Sales Browser Control": "\u0645\u0628\u064a\u0639\u0627\u062a \u0645\u062a\u0635\u0641\u062d \u0627\u0644\u062a\u062d\u0643\u0645", - "Setup": "\u0627\u0644\u0625\u0639\u062f\u0627\u062f" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/locale/de-doc.json b/setup/doctype/sales_browser_control/locale/de-doc.json deleted file mode 100644 index 83242facdb..0000000000 --- a/setup/doctype/sales_browser_control/locale/de-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Sales Browser Control": "Vertrieb Browser Control", - "Setup": "Setup" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/locale/es-doc.json b/setup/doctype/sales_browser_control/locale/es-doc.json deleted file mode 100644 index afd8363188..0000000000 --- a/setup/doctype/sales_browser_control/locale/es-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Sales Browser Control": "Ventas control de explorador", - "Setup": "Disposici\u00f3n" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/locale/fr-doc.json b/setup/doctype/sales_browser_control/locale/fr-doc.json deleted file mode 100644 index 33d177b26a..0000000000 --- a/setup/doctype/sales_browser_control/locale/fr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Sales Browser Control": "Contr\u00f4le de navigateur ventes", - "Setup": "Installation" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/locale/hi-doc.json b/setup/doctype/sales_browser_control/locale/hi-doc.json deleted file mode 100644 index 9c3bf75466..0000000000 --- a/setup/doctype/sales_browser_control/locale/hi-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Sales Browser Control": "\u092c\u093f\u0915\u094d\u0930\u0940 \u092c\u094d\u0930\u093e\u0909\u091c\u093c\u0930 \u0928\u093f\u092f\u0902\u0924\u094d\u0930\u0923", - "Setup": "\u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/locale/hr-doc.json b/setup/doctype/sales_browser_control/locale/hr-doc.json deleted file mode 100644 index 0fcdc335aa..0000000000 --- a/setup/doctype/sales_browser_control/locale/hr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Sales Browser Control": "Prodaja Preglednik kontrole", - "Setup": "Postavljanje" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/locale/nl-doc.json b/setup/doctype/sales_browser_control/locale/nl-doc.json deleted file mode 100644 index 7d75044f7b..0000000000 --- a/setup/doctype/sales_browser_control/locale/nl-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Sales Browser Control": "Verkoop Browser Control", - "Setup": "Setup" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/locale/pt-BR-doc.json b/setup/doctype/sales_browser_control/locale/pt-BR-doc.json deleted file mode 100644 index 154046d944..0000000000 --- a/setup/doctype/sales_browser_control/locale/pt-BR-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Sales Browser Control": "Controle do Navegador de Vendas", - "Setup": "Configura\u00e7\u00e3o" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/locale/pt-doc.json b/setup/doctype/sales_browser_control/locale/pt-doc.json deleted file mode 100644 index cdb8d70179..0000000000 --- a/setup/doctype/sales_browser_control/locale/pt-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Sales Browser Control": "Vendas controle de navegador", - "Setup": "Instala\u00e7\u00e3o" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/locale/sr-doc.json b/setup/doctype/sales_browser_control/locale/sr-doc.json deleted file mode 100644 index 9fdecb2b5e..0000000000 --- a/setup/doctype/sales_browser_control/locale/sr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Sales Browser Control": "\u041f\u0440\u043e\u0434\u0430\u0458\u0430 \u0411\u0440\u043e\u0432\u0441\u0435\u0440 \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0430", - "Setup": "\u041d\u0430\u043c\u0435\u0448\u0442\u0430\u0459\u043a\u0430" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/locale/ta-doc.json b/setup/doctype/sales_browser_control/locale/ta-doc.json deleted file mode 100644 index e6fed2c4b7..0000000000 --- a/setup/doctype/sales_browser_control/locale/ta-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Sales Browser Control": "\u0bb5\u0bbf\u0bb1\u0bcd\u0baa\u0ba9\u0bc8 \u0b89\u0bb2\u0bbe\u0bb5\u0bbf \u0b95\u0b9f\u0bcd\u0b9f\u0bc1\u0baa\u0bcd\u0baa\u0bbe\u0b9f\u0bc1", - "Setup": "\u0b85\u0bae\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0bae\u0bc1\u0bb1\u0bc8" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/locale/th-doc.json b/setup/doctype/sales_browser_control/locale/th-doc.json deleted file mode 100644 index 957d597d0f..0000000000 --- a/setup/doctype/sales_browser_control/locale/th-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Sales Browser Control": "\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e40\u0e1a\u0e23\u0e32\u0e27\u0e4c\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e22\u0e2d\u0e14\u0e02\u0e32\u0e22", - "Setup": "\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07" -} \ No newline at end of file diff --git a/setup/doctype/sales_browser_control/sales_browser_control.py b/setup/doctype/sales_browser_control/sales_browser_control.py deleted file mode 100644 index ae9338fd42..0000000000 --- a/setup/doctype/sales_browser_control/sales_browser_control.py +++ /dev/null @@ -1,226 +0,0 @@ -# ERPNext - web based ERP (http://erpnext.com) -# Copyright (C) 2012 Web Notes Technologies Pvt Ltd -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -from __future__ import unicode_literals -import webnotes - -from webnotes.utils import cstr -from webnotes.model import db_exists -from webnotes.model.doc import Document -from webnotes.model.bean import copy_doclist -from webnotes.model.code import get_obj -from webnotes import msgprint - -sql = webnotes.conn.sql - - - -class DocType: - def __init__(self,doc,doclist=[]): - self.doc = doc - self.doclist = doclist - - #============================================================================================= - def get_record_list(self,arg): - - parent, type = arg.split(',') - pt_col = "parent_"+type.replace(' ','_').lower() - - cl = sql("select name,is_group from `tab%s` where docstatus != 2 and %s ='%s' order by is_group desc"%(type,pt_col,parent),as_dict=1) - - return {'parent':parent, 'cl':cl} - - #============================================================================================= - # --------get root level records like all territories, all sales person etc--------- - def get_fl_node(self,arg): - - pt_col = "parent_"+arg.replace(' ','_').lower() - cl = sql("select name,is_group from `tab%s` where docstatus !=2 and %s=''"%(arg,pt_col),as_dict=1) - return {'cl':cl} - - #============================================================================================= - def add_node(self,arg): - arg = eval(arg) - node_title = arg['node_title'] - n = Document(node_title) - for d in arg.keys(): - if d != 'node_title': - n.fields[d]=arg[d] - n.old_parent = '' - n_obj = get_obj(doc=n) - - n_obj.validate() - - n_obj.doc.save(1) - - n_obj.on_update() - - return n_obj.doc.name - - #============================================================================================= - def trash_record(self,arg): - name,type = arg.split(',') - - #validation for trash of default record - if not type == 'Sales Person': - field = 'default_'+type.lower().replace(' ','_') - chk = sql("select value from `tabSingles` where doctype = 'Global Defaults' and field = '%s' and value = '%s'"%(field,name)) - if chk: - msgprint("'%s' record is set as a default %s in Global Defaults. Please change default %s then try to trash '%s' record."%(name,type.lower(), type.lower(), name)) - raise Exception - - - res = sql("select t1.name from `tab%s` t1, `tab%s` t2 where t1.lft > t2.lft and t1.rgt < t2.rgt and t1.docstatus != 2 and t2.name = '%s'"%(type,type,name)) - if res: - msgprint("You can not trashed %s as it contains other nodes."%name) - raise Exception - - - sql("update `tab%s` set docstatus = 2 where name = '%s'"%(type,name)) - - #============================================================================================= - def get_parent_lst(self,type): - par_lst = [r[0] for r in sql("select name from `tab%s` where is_group = 'Yes' and docstatus != 2"%type)] - return par_lst - - #============================================================================================= - def get_record(self,arg): - - name, type = arg.split(',') - - dict1 = {'Territory':'parent_territory','Customer Group':'parent_customer_group','Item Group':'parent_item_group','Sales Person':'parent_sales_person'} - - parent_name = dict1[type] - - query ="select name,"+dict1[type]+",is_group,rgt,lft from `tab"+cstr(type)+"` where name = '%s'" - - sv = sql(query%(cstr(name))) - - - par_lst = [r[0] for r in sql("select distinct name from `tab"+cstr(type)+"` where docstatus !=2 and (rgt > %s or lft < %s) and is_group='Yes'"%(sv[0][3],sv[0][4]))] - - dict2 = {} - dict2['name']=sv[0][0] - dict2['parent']=cstr(sv[0][1]) - dict2['parent_lst']=par_lst - dict2['is_group']=sv[0][2] - - return dict2 - - #============================================================================================= - def edit_node(self,arg): - arg = eval(arg) - nt = arg['node_title'] - - nm = nt == 'Territory' and arg['territory_name'] or nt == 'Sales Person' and arg['sales_person_name'] or nt=='Item Group' and arg['item_group_name'] or nt =='Customer Group' and arg['customer_group_name'] or '' - - n_obj = get_obj(nt,nm) - for d in arg.keys(): - if d != 'node_title': - n_obj.doc.fields[d]=arg[d] - - n_obj.doc.save() - n_obj.on_update() - - - #=============== validation ====================================================================================== - - def mvalidate(self,args): - - r = eval(args) - - if r['lft'] == 0 and r['action'] != 'Create': - n = sql("select lft,rgt from `tab%s` where name = '%s'"%(r['node_title'],r['nm'])) - r['lft'] = n[0][0] - r['rgt'] = n[0][1] - - if r['action'] == 'Update': - #-----------------validate if current node has child node---------------------------------- - v1 = self.val_group(r) - if v1 == 'true': return 'true' - - - #-------------------validation for parent sales person cannot be his child node------------ - v1 = self.val_prt(r) - if v1 == 'true': return 'true' - - #--------if current record has set as default record in manage account then should not allow to change 'has child node' to 'yes' - v1 = self.group_changed(r) - if v1 == 'true': return 'true' - - elif r['action'] == 'Create': - #-------------------validation - record is already exist-------------------------------- - v1 = self.duplicate_rcd(r) - - if v1 == 'true': return 'true' - - #------------------------------------------------- - v1 = self.trash_rcd(r) - if v1 == 'true': return 'true' - - return 'false' - #-----------------validate if current node has child node---------------------------------- - #------------------if yes then cannot change current node from group to leaf - #ON EDIT - def val_group(self,r): - if r['is_group'] == 'No': - ch = sql("select name from `tab%s` where lft>%s and rgt<%s and docstatus != 2"%(r['node_title'],r['lft'],r['rgt'])) - if ch: - msgprint("You can not changed %s from group to leaf node as it contains other nodes."%r['nm']) - return 'true' - return 'false' - - #-------------------validation for parent sales person cannot be his child node------------- - #ON EDIT - def val_prt(self,r): - res = sql("select name from `tab%s` where is_group = 'Yes' and docstatus!= 2 and (rgt > %s or lft < %s) and name ='%s' and name !='%s'"%(r['node_title'],r['rgt'],r['lft'],r['parent_nm'],r['nm'])) - - if not res: - msgprint("Please enter parent %s."%(r['node_title'])) - return 'true' - return 'false' - - #--------if current record has set as default record then not allowed to changed 'has child node' to 'yes'-------------------- - #-------------------------------------------------------- - #ON EDIT - def group_changed(self,r): - - if r['node_title'] != 'Sales Person' and r['is_group'] == 'Yes': - field = 'default_'+r['node_title'].lower().replace(' ','_') - res = sql("select value from `tabSingles` where field = '%s' and value = '%s'"%(field,r['nm'])) - if res: - msgprint("'%s' record is set as default record in Global Defaults.'Has Child Node' field cannot be changed to 'Yes' as only leaf nodes are allowed in transaction."%(r['nm'])) - return 'true' - - return 'false' - #-------------------validation - record is already exist-------------------------------- - #ON CREATE - def trash_rcd(self,r): - res = sql("select name from `tab%s` where name = '%s' and docstatus = 2"%(r['node_title'],r['nm'])) - if res: - msgprint("'%s' record is trashed. To untrash please go to Setup & click on Trash."%(r['nm'])) - return 'true' - - return 'false' - - #---------------------------------------------------------------- - #ON CREATE - def duplicate_rcd(self,r): - res = sql("select name from `tab%s` where name = '%s' and docstatus != 2"%(r['node_title'],r['nm'])) - if res: - msgprint("'%s' record is already exist."%(r['nm'])) - return 'true' - return 'false' diff --git a/setup/doctype/sales_browser_control/sales_browser_control.txt b/setup/doctype/sales_browser_control/sales_browser_control.txt deleted file mode 100644 index 6083a31abb..0000000000 --- a/setup/doctype/sales_browser_control/sales_browser_control.txt +++ /dev/null @@ -1,21 +0,0 @@ -[ - { - "creation": "2012-03-27 14:36:23", - "docstatus": 0, - "modified": "2012-03-27 14:36:23", - "modified_by": "Administrator", - "owner": "Administrator" - }, - { - "doctype": "DocType", - "issingle": 1, - "module": "Setup", - "name": "__common__", - "section_style": "Simple", - "version": 159 - }, - { - "doctype": "DocType", - "name": "Sales Browser Control" - } -] \ No newline at end of file diff --git a/setup/doctype/sales_partner/sales_partner.py b/setup/doctype/sales_partner/sales_partner.py index f629bff225..285d3a9496 100644 --- a/setup/doctype/sales_partner/sales_partner.py +++ b/setup/doctype/sales_partner/sales_partner.py @@ -42,9 +42,6 @@ class DocType: if self.doc.fields[d]: comp_address += self.doc.fields[d] + "\n" self.doc.address = comp_address - - def check_state(self): - return "\n" + "\n".join([i[0] for i in sql("select state_name from `tabState` where `tabState`.country='%s' " % self.doc.country)]) def get_contacts(self,nm): if nm: diff --git a/setup/doctype/series_detail/__init__.py b/setup/doctype/series_detail/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/setup/doctype/series_detail/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/setup/doctype/series_detail/locale/_messages_doc.json b/setup/doctype/series_detail/locale/_messages_doc.json deleted file mode 100644 index 72f4cd38ae..0000000000 --- a/setup/doctype/series_detail/locale/_messages_doc.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - "Series", - "Setup", - "Remove", - "Series Detail" -] \ No newline at end of file diff --git a/setup/doctype/series_detail/locale/ar-doc.json b/setup/doctype/series_detail/locale/ar-doc.json deleted file mode 100644 index 24d3bf73f1..0000000000 --- a/setup/doctype/series_detail/locale/ar-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Remove": "\u0646\u0632\u0639", - "Series": "\u0633\u0644\u0633\u0644\u0629", - "Series Detail": "\u0633\u0644\u0633\u0644\u0629 \u0627\u0644\u062a\u0641\u0627\u0635\u064a\u0644", - "Setup": "\u0627\u0644\u0625\u0639\u062f\u0627\u062f" -} \ No newline at end of file diff --git a/setup/doctype/series_detail/locale/de-doc.json b/setup/doctype/series_detail/locale/de-doc.json deleted file mode 100644 index df28f51e28..0000000000 --- a/setup/doctype/series_detail/locale/de-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Remove": "Entfernen", - "Series": "Serie", - "Series Detail": "Series Detailansicht", - "Setup": "Setup" -} \ No newline at end of file diff --git a/setup/doctype/series_detail/locale/es-doc.json b/setup/doctype/series_detail/locale/es-doc.json deleted file mode 100644 index 190d029adf..0000000000 --- a/setup/doctype/series_detail/locale/es-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Remove": "Quitar", - "Series": "Serie", - "Series Detail": "Serie Detalle", - "Setup": "Disposici\u00f3n" -} \ No newline at end of file diff --git a/setup/doctype/series_detail/locale/fr-doc.json b/setup/doctype/series_detail/locale/fr-doc.json deleted file mode 100644 index 6d9b9ab4f1..0000000000 --- a/setup/doctype/series_detail/locale/fr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Remove": "Enlever", - "Series": "S\u00e9rie", - "Series Detail": "D\u00e9tail Series", - "Setup": "Installation" -} \ No newline at end of file diff --git a/setup/doctype/series_detail/locale/hi-doc.json b/setup/doctype/series_detail/locale/hi-doc.json deleted file mode 100644 index f2dd867d8b..0000000000 --- a/setup/doctype/series_detail/locale/hi-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Remove": "\u0939\u091f\u093e\u0928\u093e", - "Series": "\u0915\u0908", - "Series Detail": "\u0938\u0940\u0930\u0940\u091c \u0935\u093f\u0938\u094d\u0924\u093e\u0930", - "Setup": "\u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e" -} \ No newline at end of file diff --git a/setup/doctype/series_detail/locale/hr-doc.json b/setup/doctype/series_detail/locale/hr-doc.json deleted file mode 100644 index 6255275189..0000000000 --- a/setup/doctype/series_detail/locale/hr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Remove": "Ukloniti", - "Series": "Serija", - "Series Detail": "Serija Detalj", - "Setup": "Postavljanje" -} \ No newline at end of file diff --git a/setup/doctype/series_detail/locale/nl-doc.json b/setup/doctype/series_detail/locale/nl-doc.json deleted file mode 100644 index 5cefe103f6..0000000000 --- a/setup/doctype/series_detail/locale/nl-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Remove": "Verwijderen", - "Series": "Serie", - "Series Detail": "Series Detail", - "Setup": "Setup" -} \ No newline at end of file diff --git a/setup/doctype/series_detail/locale/pt-BR-doc.json b/setup/doctype/series_detail/locale/pt-BR-doc.json deleted file mode 100644 index dca7014449..0000000000 --- a/setup/doctype/series_detail/locale/pt-BR-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Remove": "Remover", - "Series": "S\u00e9ries", - "Series Detail": "Detalhe da S\u00e9ries", - "Setup": "Configura\u00e7\u00e3o" -} \ No newline at end of file diff --git a/setup/doctype/series_detail/locale/pt-doc.json b/setup/doctype/series_detail/locale/pt-doc.json deleted file mode 100644 index a1112ad46a..0000000000 --- a/setup/doctype/series_detail/locale/pt-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Remove": "Remover", - "Series": "S\u00e9rie", - "Series Detail": "Detalhe s\u00e9rie", - "Setup": "Instala\u00e7\u00e3o" -} \ No newline at end of file diff --git a/setup/doctype/series_detail/locale/sr-doc.json b/setup/doctype/series_detail/locale/sr-doc.json deleted file mode 100644 index 1e91d35dfe..0000000000 --- a/setup/doctype/series_detail/locale/sr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Remove": "\u0423\u043a\u043b\u043e\u043d\u0438\u0442\u0438", - "Series": "\u0421\u0435\u0440\u0438\u0458\u0430", - "Series Detail": "\u0421\u0435\u0440\u0438\u0458\u0430 \u0414\u0435\u0442\u0430\u0459", - "Setup": "\u041d\u0430\u043c\u0435\u0448\u0442\u0430\u0459\u043a\u0430" -} \ No newline at end of file diff --git a/setup/doctype/series_detail/locale/ta-doc.json b/setup/doctype/series_detail/locale/ta-doc.json deleted file mode 100644 index c3ec05f4b2..0000000000 --- a/setup/doctype/series_detail/locale/ta-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Remove": "\u0ba8\u0bc0\u0b95\u0bcd\u0b95\u0bc1", - "Series": "\u0ba4\u0bc6\u0bbe\u0b9f\u0bb0\u0bcd", - "Series Detail": "\u0ba4\u0bc6\u0bbe\u0b9f\u0bb0\u0bcd \u0bb5\u0bbf\u0bb0\u0bbf\u0bb5\u0bbe\u0b95", - "Setup": "\u0b85\u0bae\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0bae\u0bc1\u0bb1\u0bc8" -} \ No newline at end of file diff --git a/setup/doctype/series_detail/locale/th-doc.json b/setup/doctype/series_detail/locale/th-doc.json deleted file mode 100644 index 4974555104..0000000000 --- a/setup/doctype/series_detail/locale/th-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Remove": "\u0e16\u0e2d\u0e14", - "Series": "\u0e0a\u0e38\u0e14", - "Series Detail": "\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e0a\u0e38\u0e14", - "Setup": "\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07" -} \ No newline at end of file diff --git a/setup/doctype/series_detail/series_detail.py b/setup/doctype/series_detail/series_detail.py deleted file mode 100644 index 7f48feb2eb..0000000000 --- a/setup/doctype/series_detail/series_detail.py +++ /dev/null @@ -1,22 +0,0 @@ -# ERPNext - web based ERP (http://erpnext.com) -# Copyright (C) 2012 Web Notes Technologies Pvt Ltd -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -from __future__ import unicode_literals -import webnotes - -class DocType: - def __init__(self, d, dl): - self.doc, self.doclist = d, dl \ No newline at end of file diff --git a/setup/doctype/series_detail/series_detail.txt b/setup/doctype/series_detail/series_detail.txt deleted file mode 100644 index 98a5d78a00..0000000000 --- a/setup/doctype/series_detail/series_detail.txt +++ /dev/null @@ -1,43 +0,0 @@ -[ - { - "creation": "2013-02-22 01:27:57", - "docstatus": 0, - "modified": "2013-03-07 07:03:32", - "modified_by": "Administrator", - "owner": "Administrator" - }, - { - "doctype": "DocType", - "istable": 1, - "module": "Setup", - "name": "__common__" - }, - { - "doctype": "DocField", - "name": "__common__", - "parent": "Series Detail", - "parentfield": "fields", - "parenttype": "DocType", - "permlevel": 0 - }, - { - "doctype": "DocType", - "name": "Series Detail" - }, - { - "doctype": "DocField", - "fieldname": "series", - "fieldtype": "Read Only", - "label": "Series", - "oldfieldname": "series", - "oldfieldtype": "Read Only" - }, - { - "doctype": "DocField", - "fieldname": "remove", - "fieldtype": "Check", - "label": "Remove", - "oldfieldname": "remove", - "oldfieldtype": "Check" - } -] \ No newline at end of file diff --git a/setup/doctype/state/__init__.py b/setup/doctype/state/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/setup/doctype/state/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/setup/doctype/state/locale/_messages_doc.json b/setup/doctype/state/locale/_messages_doc.json deleted file mode 100644 index d6beca27df..0000000000 --- a/setup/doctype/state/locale/_messages_doc.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - "Country", - "Setup", - "State", - "State Name" -] \ No newline at end of file diff --git a/setup/doctype/state/locale/ar-doc.json b/setup/doctype/state/locale/ar-doc.json deleted file mode 100644 index 34b18e232b..0000000000 --- a/setup/doctype/state/locale/ar-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Country": "\u0628\u0644\u062f", - "Setup": "\u0627\u0644\u0625\u0639\u062f\u0627\u062f", - "State": "\u062f\u0648\u0644\u0629", - "State Name": "\u0627\u0633\u0645 \u0648\u0644\u0627\u064a\u0629" -} \ No newline at end of file diff --git a/setup/doctype/state/locale/de-doc.json b/setup/doctype/state/locale/de-doc.json deleted file mode 100644 index 63f1a8108a..0000000000 --- a/setup/doctype/state/locale/de-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Country": "Land", - "Setup": "Setup", - "State": "Zustand", - "State Name": "State Name" -} \ No newline at end of file diff --git a/setup/doctype/state/locale/es-doc.json b/setup/doctype/state/locale/es-doc.json deleted file mode 100644 index 5b417bde07..0000000000 --- a/setup/doctype/state/locale/es-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Country": "Pa\u00eds", - "Setup": "Disposici\u00f3n", - "State": "Estado", - "State Name": "Estado Nombre" -} \ No newline at end of file diff --git a/setup/doctype/state/locale/fr-doc.json b/setup/doctype/state/locale/fr-doc.json deleted file mode 100644 index 1619e32eda..0000000000 --- a/setup/doctype/state/locale/fr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Country": "Pays", - "Setup": "Installation", - "State": "\u00c9tat", - "State Name": "Nom de l'\u00c9tat" -} \ No newline at end of file diff --git a/setup/doctype/state/locale/hi-doc.json b/setup/doctype/state/locale/hi-doc.json deleted file mode 100644 index cf74666953..0000000000 --- a/setup/doctype/state/locale/hi-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Country": "\u0926\u0947\u0936", - "Setup": "\u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e", - "State": "\u0930\u093e\u091c\u094d\u092f", - "State Name": "\u0930\u093e\u091c\u094d\u092f \u0915\u093e \u0928\u093e\u092e" -} \ No newline at end of file diff --git a/setup/doctype/state/locale/hr-doc.json b/setup/doctype/state/locale/hr-doc.json deleted file mode 100644 index 30e6e84993..0000000000 --- a/setup/doctype/state/locale/hr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Country": "Zemlja", - "Setup": "Postavljanje", - "State": "Dr\u017eava", - "State Name": "Dr\u017eava Ime" -} \ No newline at end of file diff --git a/setup/doctype/state/locale/nl-doc.json b/setup/doctype/state/locale/nl-doc.json deleted file mode 100644 index ee4fa32463..0000000000 --- a/setup/doctype/state/locale/nl-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Country": "Land", - "Setup": "Setup", - "State": "Staat", - "State Name": "Staat Naam" -} \ No newline at end of file diff --git a/setup/doctype/state/locale/pt-BR-doc.json b/setup/doctype/state/locale/pt-BR-doc.json deleted file mode 100644 index 7c8fa8ff9c..0000000000 --- a/setup/doctype/state/locale/pt-BR-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Country": "Pa\u00eds", - "Setup": "Configura\u00e7\u00e3o", - "State": "Estado", - "State Name": "Nome do Estado" -} \ No newline at end of file diff --git a/setup/doctype/state/locale/pt-doc.json b/setup/doctype/state/locale/pt-doc.json deleted file mode 100644 index 4c56ab4a9f..0000000000 --- a/setup/doctype/state/locale/pt-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Country": "Pa\u00eds", - "Setup": "Instala\u00e7\u00e3o", - "State": "Estado", - "State Name": "Nome Estado" -} \ No newline at end of file diff --git a/setup/doctype/state/locale/sr-doc.json b/setup/doctype/state/locale/sr-doc.json deleted file mode 100644 index 3302a14d0f..0000000000 --- a/setup/doctype/state/locale/sr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Country": "\u0417\u0435\u043c\u0459\u0430", - "Setup": "\u041d\u0430\u043c\u0435\u0448\u0442\u0430\u0459\u043a\u0430", - "State": "\u0414\u0440\u0436\u0430\u0432\u0430", - "State Name": "\u0418\u043c\u0435 \u0434\u0440\u0436\u0430\u0432\u0435" -} \ No newline at end of file diff --git a/setup/doctype/state/locale/ta-doc.json b/setup/doctype/state/locale/ta-doc.json deleted file mode 100644 index 82d84078da..0000000000 --- a/setup/doctype/state/locale/ta-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Country": "\u0ba8\u0bbe\u0b9f\u0bc1", - "Setup": "\u0b85\u0bae\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0bae\u0bc1\u0bb1\u0bc8", - "State": "\u0ba8\u0bbf\u0bb2\u0bc8", - "State Name": "\u0bae\u0bbe\u0ba8\u0bbf\u0bb2 \u0baa\u0bc6\u0baf\u0bb0\u0bcd" -} \ No newline at end of file diff --git a/setup/doctype/state/locale/th-doc.json b/setup/doctype/state/locale/th-doc.json deleted file mode 100644 index d41fec9a41..0000000000 --- a/setup/doctype/state/locale/th-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Country": "\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28", - "Setup": "\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07", - "State": "\u0e23\u0e31\u0e10", - "State Name": "\u0e0a\u0e37\u0e48\u0e2d\u0e23\u0e31\u0e10" -} \ No newline at end of file diff --git a/setup/doctype/state/state.js b/setup/doctype/state/state.js deleted file mode 100644 index 3cad9447a9..0000000000 --- a/setup/doctype/state/state.js +++ /dev/null @@ -1,26 +0,0 @@ -// ERPNext - web based ERP (http://erpnext.com) -// Copyright (C) 2012 Web Notes Technologies Pvt Ltd -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - - - -//--------- ONLOAD ------------- -cur_frm.cscript.onload = function(doc, cdt, cdn) { - -} - -cur_frm.cscript.refresh = function(doc, cdt, cdn) { - -} \ No newline at end of file diff --git a/setup/doctype/state/state.py b/setup/doctype/state/state.py deleted file mode 100644 index 7f48feb2eb..0000000000 --- a/setup/doctype/state/state.py +++ /dev/null @@ -1,22 +0,0 @@ -# ERPNext - web based ERP (http://erpnext.com) -# Copyright (C) 2012 Web Notes Technologies Pvt Ltd -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -from __future__ import unicode_literals -import webnotes - -class DocType: - def __init__(self, d, dl): - self.doc, self.doclist = d, dl \ No newline at end of file diff --git a/setup/doctype/state/state.txt b/setup/doctype/state/state.txt deleted file mode 100644 index 464622ac8d..0000000000 --- a/setup/doctype/state/state.txt +++ /dev/null @@ -1,78 +0,0 @@ -[ - { - "creation": "2012-03-27 14:36:25", - "docstatus": 0, - "modified": "2012-03-27 14:36:25", - "modified_by": "Administrator", - "owner": "Administrator" - }, - { - "autoname": "field:state_name", - "doctype": "DocType", - "document_type": "Master", - "in_create": 0, - "module": "Setup", - "name": "__common__", - "read_only": 0, - "section_style": "Simple", - "show_in_menu": 0, - "version": 14 - }, - { - "doctype": "DocField", - "name": "__common__", - "parent": "State", - "parentfield": "fields", - "parenttype": "DocType", - "permlevel": 0, - "reqd": 1 - }, - { - "create": 1, - "doctype": "DocPerm", - "name": "__common__", - "parent": "State", - "parentfield": "permissions", - "parenttype": "DocType", - "permlevel": 0, - "read": 1, - "report": 1, - "write": 1 - }, - { - "doctype": "DocType", - "name": "State" - }, - { - "doctype": "DocPerm", - "role": "System Manager" - }, - { - "amend": 0, - "cancel": 0, - "doctype": "DocPerm", - "role": "Sales Master Manager", - "submit": 0 - }, - { - "doctype": "DocPerm", - "role": "Purchase Master Manager" - }, - { - "doctype": "DocField", - "fieldname": "state_name", - "fieldtype": "Data", - "label": "State Name", - "oldfieldname": "state_name", - "oldfieldtype": "Data" - }, - { - "doctype": "DocField", - "fieldname": "country", - "fieldtype": "Select", - "label": "Country", - "oldfieldname": "country", - "oldfieldtype": "Select", - "options": "link:Country" - } -] \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/__init__.py b/setup/doctype/workflow_action_detail/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/setup/doctype/workflow_action_detail/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/setup/doctype/workflow_action_detail/locale/_messages_doc.json b/setup/doctype/workflow_action_detail/locale/_messages_doc.json deleted file mode 100644 index 6def7f173e..0000000000 --- a/setup/doctype/workflow_action_detail/locale/_messages_doc.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - "Field", - "Setup", - "Workflow Action Detail", - "Value" -] \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/locale/ar-doc.json b/setup/doctype/workflow_action_detail/locale/ar-doc.json deleted file mode 100644 index 660f78e12f..0000000000 --- a/setup/doctype/workflow_action_detail/locale/ar-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Field": "\u062d\u0642\u0644", - "Setup": "\u0627\u0644\u0625\u0639\u062f\u0627\u062f", - "Value": "\u0642\u064a\u0645\u0629", - "Workflow Action Detail": "\u062a\u0641\u0627\u0635\u064a\u0644 \u0633\u064a\u0631 \u0627\u0644\u0639\u0645\u0644 \u0627\u0644\u0639\u0645\u0644" -} \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/locale/de-doc.json b/setup/doctype/workflow_action_detail/locale/de-doc.json deleted file mode 100644 index 3db419a145..0000000000 --- a/setup/doctype/workflow_action_detail/locale/de-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Field": "Feld", - "Setup": "Setup", - "Value": "Wert", - "Workflow Action Detail": "Workflow-Aktion Details" -} \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/locale/es-doc.json b/setup/doctype/workflow_action_detail/locale/es-doc.json deleted file mode 100644 index 90c1ae544b..0000000000 --- a/setup/doctype/workflow_action_detail/locale/es-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Field": "Campo", - "Setup": "Disposici\u00f3n", - "Value": "Valor", - "Workflow Action Detail": "Detalle de Acci\u00f3n de flujo de trabajo" -} \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/locale/fr-doc.json b/setup/doctype/workflow_action_detail/locale/fr-doc.json deleted file mode 100644 index 4aa39e4b40..0000000000 --- a/setup/doctype/workflow_action_detail/locale/fr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Field": "Champ", - "Setup": "Installation", - "Value": "Valeur", - "Workflow Action Detail": "D\u00e9tail d'action de workflow" -} \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/locale/hi-doc.json b/setup/doctype/workflow_action_detail/locale/hi-doc.json deleted file mode 100644 index bd5487d2d0..0000000000 --- a/setup/doctype/workflow_action_detail/locale/hi-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Field": "\u0915\u094d\u0937\u0947\u0924\u094d\u0930", - "Setup": "\u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e", - "Value": "\u092e\u0942\u0932\u094d\u092f", - "Workflow Action Detail": "\u0935\u0930\u094d\u0915\u092b\u093c\u094d\u0932\u094b \u0915\u093e\u0930\u094d\u0930\u0935\u093e\u0908 \u0935\u093f\u0938\u094d\u0924\u093e\u0930" -} \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/locale/hr-doc.json b/setup/doctype/workflow_action_detail/locale/hr-doc.json deleted file mode 100644 index 75df7b777c..0000000000 --- a/setup/doctype/workflow_action_detail/locale/hr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Field": "Polje", - "Setup": "Postavljanje", - "Value": "Vrijednost", - "Workflow Action Detail": "Workflow Akcija Detalj" -} \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/locale/nl-doc.json b/setup/doctype/workflow_action_detail/locale/nl-doc.json deleted file mode 100644 index 4c51a38f84..0000000000 --- a/setup/doctype/workflow_action_detail/locale/nl-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Field": "Veld", - "Setup": "Setup", - "Value": "Waarde", - "Workflow Action Detail": "Workflow Actie Detail" -} \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/locale/pt-BR-doc.json b/setup/doctype/workflow_action_detail/locale/pt-BR-doc.json deleted file mode 100644 index 187f25f521..0000000000 --- a/setup/doctype/workflow_action_detail/locale/pt-BR-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Field": "Campo", - "Setup": "Configura\u00e7\u00e3o", - "Value": "Valor", - "Workflow Action Detail": "Detalhe da A\u00e7\u00e3o do Fluxo de Trabalho" -} \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/locale/pt-doc.json b/setup/doctype/workflow_action_detail/locale/pt-doc.json deleted file mode 100644 index 22289ffc6a..0000000000 --- a/setup/doctype/workflow_action_detail/locale/pt-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Field": "Campo", - "Setup": "Instala\u00e7\u00e3o", - "Value": "Valor", - "Workflow Action Detail": "Detalhe A\u00e7\u00e3o de fluxo de trabalho" -} \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/locale/sr-doc.json b/setup/doctype/workflow_action_detail/locale/sr-doc.json deleted file mode 100644 index d1c31d96f8..0000000000 --- a/setup/doctype/workflow_action_detail/locale/sr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Field": "\u041f\u043e\u0459\u0435", - "Setup": "\u041d\u0430\u043c\u0435\u0448\u0442\u0430\u0459\u043a\u0430", - "Value": "\u0412\u0440\u0435\u0434\u043d\u043e\u0441\u0442", - "Workflow Action Detail": "\u0412\u043e\u0440\u043a\u0444\u043b\u043e\u0432 \u0410\u043a\u0446\u0438\u0458\u0430 \u0414\u0435\u0442\u0430\u0459" -} \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/locale/ta-doc.json b/setup/doctype/workflow_action_detail/locale/ta-doc.json deleted file mode 100644 index 20e5eaeb37..0000000000 --- a/setup/doctype/workflow_action_detail/locale/ta-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Field": "\u0baa\u0bc1\u0bb2\u0bae\u0bcd", - "Setup": "\u0b85\u0bae\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0bae\u0bc1\u0bb1\u0bc8", - "Value": "\u0bae\u0ba4\u0bbf\u0baa\u0bcd\u0baa\u0bc1", - "Workflow Action Detail": "\u0baa\u0ba3\u0bbf\u0baf\u0bc7\u0bbe\u0b9f\u0bcd\u0b9f\u0bae\u0bcd \u0b85\u0ba4\u0bbf\u0bb0\u0b9f\u0bbf \u0bb5\u0bbf\u0bb0\u0bbf\u0bb5\u0bbe\u0b95" -} \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/locale/th-doc.json b/setup/doctype/workflow_action_detail/locale/th-doc.json deleted file mode 100644 index 3727115a26..0000000000 --- a/setup/doctype/workflow_action_detail/locale/th-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Field": "\u0e2a\u0e19\u0e32\u0e21", - "Setup": "\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07", - "Value": "\u0e21\u0e39\u0e25\u0e04\u0e48\u0e32", - "Workflow Action Detail": "\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e01\u0e32\u0e23\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19" -} \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/workflow_action_detail.py b/setup/doctype/workflow_action_detail/workflow_action_detail.py deleted file mode 100644 index 7f48feb2eb..0000000000 --- a/setup/doctype/workflow_action_detail/workflow_action_detail.py +++ /dev/null @@ -1,22 +0,0 @@ -# ERPNext - web based ERP (http://erpnext.com) -# Copyright (C) 2012 Web Notes Technologies Pvt Ltd -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -from __future__ import unicode_literals -import webnotes - -class DocType: - def __init__(self, d, dl): - self.doc, self.doclist = d, dl \ No newline at end of file diff --git a/setup/doctype/workflow_action_detail/workflow_action_detail.txt b/setup/doctype/workflow_action_detail/workflow_action_detail.txt deleted file mode 100644 index 739388257a..0000000000 --- a/setup/doctype/workflow_action_detail/workflow_action_detail.txt +++ /dev/null @@ -1,45 +0,0 @@ -[ - { - "creation": "2013-02-22 01:27:59", - "docstatus": 0, - "modified": "2013-03-07 07:03:34", - "modified_by": "Administrator", - "owner": "swarnalata@webnotestech.com" - }, - { - "doctype": "DocType", - "istable": 1, - "module": "Setup", - "name": "__common__" - }, - { - "doctype": "DocField", - "name": "__common__", - "parent": "Workflow Action Detail", - "parentfield": "fields", - "parenttype": "DocType", - "permlevel": 0, - "print_width": "200px", - "width": "200px" - }, - { - "doctype": "DocType", - "name": "Workflow Action Detail" - }, - { - "doctype": "DocField", - "fieldname": "action_field", - "fieldtype": "Select", - "label": "Field", - "oldfieldname": "action_field", - "oldfieldtype": "Select" - }, - { - "doctype": "DocField", - "fieldname": "action_value", - "fieldtype": "Data", - "label": "Value", - "oldfieldname": "action_value", - "oldfieldtype": "Data" - } -] \ No newline at end of file diff --git a/setup/doctype/workflow_engine/__init__.py b/setup/doctype/workflow_engine/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/setup/doctype/workflow_engine/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/setup/doctype/workflow_engine/locale/_messages_doc.json b/setup/doctype/workflow_engine/locale/_messages_doc.json deleted file mode 100644 index f03ed6ab74..0000000000 --- a/setup/doctype/workflow_engine/locale/_messages_doc.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - "Setup", - "Workflow Engine" -] \ No newline at end of file diff --git a/setup/doctype/workflow_engine/locale/ar-doc.json b/setup/doctype/workflow_engine/locale/ar-doc.json deleted file mode 100644 index 21219e8849..0000000000 --- a/setup/doctype/workflow_engine/locale/ar-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Setup": "\u0627\u0644\u0625\u0639\u062f\u0627\u062f", - "Workflow Engine": "\u0633\u064a\u0631 \u0627\u0644\u0639\u0645\u0644 \u0627\u0644\u0645\u062d\u0631\u0643" -} \ No newline at end of file diff --git a/setup/doctype/workflow_engine/locale/de-doc.json b/setup/doctype/workflow_engine/locale/de-doc.json deleted file mode 100644 index 312ccf5d42..0000000000 --- a/setup/doctype/workflow_engine/locale/de-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Setup": "Setup", - "Workflow Engine": "Workflow Engine" -} \ No newline at end of file diff --git a/setup/doctype/workflow_engine/locale/es-doc.json b/setup/doctype/workflow_engine/locale/es-doc.json deleted file mode 100644 index 30c9089860..0000000000 --- a/setup/doctype/workflow_engine/locale/es-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Setup": "Disposici\u00f3n", - "Workflow Engine": "Workflow Engine" -} \ No newline at end of file diff --git a/setup/doctype/workflow_engine/locale/fr-doc.json b/setup/doctype/workflow_engine/locale/fr-doc.json deleted file mode 100644 index 2c15fd648d..0000000000 --- a/setup/doctype/workflow_engine/locale/fr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Setup": "Installation", - "Workflow Engine": "Workflow Engine" -} \ No newline at end of file diff --git a/setup/doctype/workflow_engine/locale/hi-doc.json b/setup/doctype/workflow_engine/locale/hi-doc.json deleted file mode 100644 index f207e7aab7..0000000000 --- a/setup/doctype/workflow_engine/locale/hi-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Setup": "\u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e", - "Workflow Engine": "\u0915\u093e\u0930\u094d\u092f\u092a\u094d\u0930\u0935\u093e\u0939 \u0907\u0902\u091c\u0928" -} \ No newline at end of file diff --git a/setup/doctype/workflow_engine/locale/hr-doc.json b/setup/doctype/workflow_engine/locale/hr-doc.json deleted file mode 100644 index 3003627ee1..0000000000 --- a/setup/doctype/workflow_engine/locale/hr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Setup": "Postavljanje", - "Workflow Engine": "Workflow motora" -} \ No newline at end of file diff --git a/setup/doctype/workflow_engine/locale/nl-doc.json b/setup/doctype/workflow_engine/locale/nl-doc.json deleted file mode 100644 index 312ccf5d42..0000000000 --- a/setup/doctype/workflow_engine/locale/nl-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Setup": "Setup", - "Workflow Engine": "Workflow Engine" -} \ No newline at end of file diff --git a/setup/doctype/workflow_engine/locale/pt-BR-doc.json b/setup/doctype/workflow_engine/locale/pt-BR-doc.json deleted file mode 100644 index 06298def52..0000000000 --- a/setup/doctype/workflow_engine/locale/pt-BR-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Setup": "Configura\u00e7\u00e3o", - "Workflow Engine": "Mecanismo do Fluxo de Trabalho" -} \ No newline at end of file diff --git a/setup/doctype/workflow_engine/locale/pt-doc.json b/setup/doctype/workflow_engine/locale/pt-doc.json deleted file mode 100644 index e953ceb134..0000000000 --- a/setup/doctype/workflow_engine/locale/pt-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Setup": "Instala\u00e7\u00e3o", - "Workflow Engine": "Workflow Engine" -} \ No newline at end of file diff --git a/setup/doctype/workflow_engine/locale/sr-doc.json b/setup/doctype/workflow_engine/locale/sr-doc.json deleted file mode 100644 index 11b4a1ca91..0000000000 --- a/setup/doctype/workflow_engine/locale/sr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Setup": "\u041d\u0430\u043c\u0435\u0448\u0442\u0430\u0459\u043a\u0430", - "Workflow Engine": "\u0412\u043e\u0440\u043a\u0444\u043b\u043e\u0432 \u0415\u043d\u0433\u0438\u043d\u0435" -} \ No newline at end of file diff --git a/setup/doctype/workflow_engine/locale/ta-doc.json b/setup/doctype/workflow_engine/locale/ta-doc.json deleted file mode 100644 index f9dfc8ca6e..0000000000 --- a/setup/doctype/workflow_engine/locale/ta-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Setup": "\u0b85\u0bae\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0bae\u0bc1\u0bb1\u0bc8", - "Workflow Engine": "\u0baa\u0ba3\u0bbf\u0baf\u0bc7\u0bbe\u0b9f\u0bcd\u0b9f\u0bae\u0bcd \u0b8e\u0b9e\u0bcd\u0b9a\u0bbf\u0ba9\u0bcd" -} \ No newline at end of file diff --git a/setup/doctype/workflow_engine/locale/th-doc.json b/setup/doctype/workflow_engine/locale/th-doc.json deleted file mode 100644 index 95a2e52500..0000000000 --- a/setup/doctype/workflow_engine/locale/th-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Setup": "\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07", - "Workflow Engine": "\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e22\u0e19\u0e15\u0e4c\u0e40\u0e27\u0e34\u0e23\u0e4c\u0e01\u0e42\u0e1f\u0e25\u0e27\u0e4c" -} \ No newline at end of file diff --git a/setup/doctype/workflow_engine/workflow_engine.py b/setup/doctype/workflow_engine/workflow_engine.py deleted file mode 100644 index 693027a68c..0000000000 --- a/setup/doctype/workflow_engine/workflow_engine.py +++ /dev/null @@ -1,56 +0,0 @@ -# ERPNext - web based ERP (http://erpnext.com) -# Copyright (C) 2012 Web Notes Technologies Pvt Ltd -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -from __future__ import unicode_literals -import webnotes - -from webnotes.model import db_exists -from webnotes.model.bean import getlist, copy_doclist -from webnotes.model.code import get_obj -from webnotes import form, msgprint - -sql = webnotes.conn.sql - - - -class DocType: - def __init__(self, doc, doclist=[]): - self.doc, self.doclist = doc, doclist - - - def apply_rule(self,form_obj): - #msgprint("hello") - rule_list = sql("select rule_name from `tabWorkflow Rule` where select_form = '%s' and rule_status='Active' order by rule_priority asc" % (form_obj.doc.doctype)) - for rl in rule_list: - #msgprint(rl[0]) - autho_obj=get_obj("Workflow Rule",rl[0],with_children=1) - cond_hold = autho_obj.evalute_rule(form_obj) - #msgprint("cond_hold:" + cond_hold) - if cond_hold =='Yes': - self.apply_action(rl[0],form_obj) - return - - - #if rule holds true then the following action will be taken - def apply_action(self,rule_no,form_obj): - rule_obj=get_obj('Workflow Rule',rule_no,with_children=1) - #msgprint("action") - for d in getlist(rule_obj.doclist,'workflow_action_details'): - field_name=sql("select fieldname from tabDocField where parent='%s' and label='%s'" %(form_obj.doc.doctype,d.action_field))[0][0] - if field_name: - #msgprint(field_name) - form_obj.doc.fields[field_name] = d.action_value - return \ No newline at end of file diff --git a/setup/doctype/workflow_engine/workflow_engine.txt b/setup/doctype/workflow_engine/workflow_engine.txt deleted file mode 100644 index 7103bbf42d..0000000000 --- a/setup/doctype/workflow_engine/workflow_engine.txt +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "creation": "2012-03-27 14:36:26", - "docstatus": 0, - "modified": "2012-03-27 14:36:26", - "modified_by": "Administrator", - "owner": "swarnalata@webnotestech.com" - }, - { - "doctype": "DocType", - "issingle": 1, - "module": "Setup", - "name": "__common__", - "section_style": "Simple", - "show_in_menu": 0, - "version": 4 - }, - { - "doctype": "DocType", - "name": "Workflow Engine" - } -] \ No newline at end of file diff --git a/setup/doctype/workflow_rule/__init__.py b/setup/doctype/workflow_rule/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/setup/doctype/workflow_rule/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/setup/doctype/workflow_rule/locale/_messages_doc.json b/setup/doctype/workflow_rule/locale/_messages_doc.json deleted file mode 100644 index 191f1681e3..0000000000 --- a/setup/doctype/workflow_rule/locale/_messages_doc.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - "Extra Condition", - "No", - "Select Form", - "Intro HTML", - "Raise Exception", - "Action Detail", - "Workflow Action Details", - "Define Rule", - "Active", - "Setup", - "Enter message", - "Reject HTML", - "Rule Definition", - "Yes", - "Rule Name", - "Rule Priority", - "Inactive", - "Rule Status", - "Action html", - "Workflow Rule Details", - "Workflow Rule" -] \ No newline at end of file diff --git a/setup/doctype/workflow_rule/locale/ar-doc.json b/setup/doctype/workflow_rule/locale/ar-doc.json deleted file mode 100644 index 1219b6cdf2..0000000000 --- a/setup/doctype/workflow_rule/locale/ar-doc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Action Detail": "\u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u0639\u0645\u0644", - "Action html": "\u0639\u0645\u0644 HTML", - "Active": "\u0646\u0634\u0637", - "Define Rule": "\u062a\u0639\u0631\u064a\u0641 \u0627\u0644\u0642\u0627\u0639\u062f\u0629", - "Enter message": "\u0623\u062f\u062e\u0644 \u0631\u0633\u0627\u0644\u0629", - "Extra Condition": "\u062d\u0627\u0644\u0629 \u0625\u0636\u0627\u0641\u064a\u0629", - "Inactive": "\u063a\u064a\u0631 \u0641\u0639\u0627\u0644", - "Intro HTML": "\u0645\u0642\u062f\u0645\u0629 HTML", - "No": "\u0644\u0627", - "Raise Exception": "\u0631\u0641\u0639 \u0627\u0633\u062a\u062b\u0646\u0627\u0621", - "Reject HTML": "\u0631\u0641\u0636 HTML", - "Rule Definition": "\u062d\u0643\u0645 \u062a\u0639\u0631\u064a\u0641", - "Rule Name": "\u062d\u0643\u0645 \u0627\u0633\u0645", - "Rule Priority": "\u0642\u0627\u0639\u062f\u0629 \u0627\u0644\u0623\u0648\u0644\u0648\u064a\u0629", - "Rule Status": "\u062d\u0643\u0645 \u0648\u0636\u0639", - "Select Form": "\u062a\u062d\u062f\u064a\u062f \u0646\u0645\u0648\u0630\u062c", - "Setup": "\u0627\u0644\u0625\u0639\u062f\u0627\u062f", - "Workflow Action Details": "\u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u0639\u0645\u0644 \u0633\u064a\u0631 \u0627\u0644\u0639\u0645\u0644", - "Workflow Rule": "\u0627\u0644\u0642\u0627\u0639\u062f\u0629 \u0633\u064a\u0631 \u0627\u0644\u0639\u0645\u0644", - "Workflow Rule Details": "\u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u0642\u0627\u0639\u062f\u0629 \u0633\u064a\u0631 \u0627\u0644\u0639\u0645\u0644", - "Yes": "\u0646\u0639\u0645" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule/locale/de-doc.json b/setup/doctype/workflow_rule/locale/de-doc.json deleted file mode 100644 index 7b5899498a..0000000000 --- a/setup/doctype/workflow_rule/locale/de-doc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Action Detail": "Aktion Details", - "Action html": "Aktion html", - "Active": "Aktiv", - "Define Rule": "Definieren Rule", - "Enter message": "Geben Sie eine Nachricht", - "Extra Condition": "Zus\u00e4tzliche Zustand", - "Inactive": "Inaktiv", - "Intro HTML": "Intro HTML", - "No": "Auf", - "Raise Exception": "Raise Exception", - "Reject HTML": "Ablehnen HTML", - "Rule Definition": "Rule Definition", - "Rule Name": "Name der Regel", - "Rule Priority": "Priority Rule", - "Rule Status": "Rule-Status", - "Select Form": "W\u00e4hlen Sie Formular", - "Setup": "Setup", - "Workflow Action Details": "Workflow Action Details", - "Workflow Rule": "Workflow-Regel", - "Workflow Rule Details": "Workflow Regeldetails", - "Yes": "Ja" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule/locale/es-doc.json b/setup/doctype/workflow_rule/locale/es-doc.json deleted file mode 100644 index 5556932b6e..0000000000 --- a/setup/doctype/workflow_rule/locale/es-doc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Action Detail": "Acci\u00f3n Detalle", - "Action html": "Acci\u00f3n html", - "Active": "Activo", - "Define Rule": "Definir regla", - "Enter message": "Ingrese mensaje", - "Extra Condition": "Condici\u00f3n adicional", - "Inactive": "Inactivo", - "Intro HTML": "Intro HTML", - "No": "No", - "Raise Exception": "Levante Excepci\u00f3n", - "Reject HTML": "Rechazar HTML", - "Rule Definition": "Definici\u00f3n de regla", - "Rule Name": "Nombre de la regla", - "Rule Priority": "Regla de prioridad", - "Rule Status": "Regla Estado", - "Select Form": "Seleccione la Forma", - "Setup": "Disposici\u00f3n", - "Workflow Action Details": "Detalles de flujo de trabajo de acci\u00f3n", - "Workflow Rule": "Flujo de trabajo de la Regla", - "Workflow Rule Details": "Datos Workflow Rule", - "Yes": "S\u00ed" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule/locale/fr-doc.json b/setup/doctype/workflow_rule/locale/fr-doc.json deleted file mode 100644 index cb876dbba8..0000000000 --- a/setup/doctype/workflow_rule/locale/fr-doc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Action Detail": "D\u00e9tail d'action", - "Action html": "Html action", - "Active": "Actif", - "Define Rule": "D\u00e9finir la r\u00e8gle", - "Enter message": "Entrez un message", - "Extra Condition": "Condition suppl\u00e9mentaire", - "Inactive": "Inactif", - "Intro HTML": "Intro HTML", - "No": "Aucun", - "Raise Exception": "Soulever Exception", - "Reject HTML": "Rejeter HTML", - "Rule Definition": "D\u00e9finition de r\u00e8gle", - "Rule Name": "Nom de la r\u00e8gle", - "Rule Priority": "Priorit\u00e9 de la r\u00e8gle", - "Rule Status": "R\u00e8gle Statut", - "Select Form": "S\u00e9lectionnez le formulaire", - "Setup": "Installation", - "Workflow Action Details": "D\u00e9tails des actions de flux de travail", - "Workflow Rule": "R\u00e8gle de workflow", - "Workflow Rule Details": "D\u00e9tails de la r\u00e8gle de workflow", - "Yes": "Oui" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule/locale/hi-doc.json b/setup/doctype/workflow_rule/locale/hi-doc.json deleted file mode 100644 index 616089da6b..0000000000 --- a/setup/doctype/workflow_rule/locale/hi-doc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Action Detail": "\u0932\u0921\u093c\u093e\u0908 \u0935\u093f\u0938\u094d\u0924\u093e\u0930", - "Action html": "\u0932\u0921\u093c\u093e\u0908 html", - "Active": "\u0938\u0915\u094d\u0930\u093f\u092f", - "Define Rule": "\u0928\u093f\u092f\u092e \u092a\u0930\u093f\u092d\u093e\u0937\u093f\u0924", - "Enter message": "\u0938\u0902\u0926\u0947\u0936 \u0926\u0930\u094d\u091c \u0915\u0930\u0947\u0902", - "Extra Condition": "\u0905\u0924\u093f\u0930\u093f\u0915\u094d\u0924 \u0936\u0930\u094d\u0924", - "Inactive": "\u0928\u093f\u0937\u094d\u0915\u094d\u0930\u093f\u092f", - "Intro HTML": "\u092a\u0939\u091a\u093e\u0928 HTML", - "No": "\u0928\u0939\u0940\u0902", - "Raise Exception": "\u0905\u092a\u0935\u093e\u0926 \u0909\u0920\u093e\u090f\u0901", - "Reject HTML": "HTML \u0915\u094b \u0905\u0938\u094d\u0935\u0940\u0915\u093e\u0930 \u0915\u0930\u0947\u0902", - "Rule Definition": "\u0928\u093f\u092f\u092e \u092a\u0930\u093f\u092d\u093e\u0937\u093e", - "Rule Name": "\u0928\u093f\u092f\u092e \u0915\u093e \u0928\u093e\u092e", - "Rule Priority": "\u0928\u093f\u092f\u092e \u092a\u094d\u0930\u093e\u0925\u092e\u093f\u0915\u0924\u093e", - "Rule Status": "\u0928\u093f\u092f\u092e \u0938\u094d\u0925\u093f\u0924\u093f", - "Select Form": "\u092a\u094d\u0930\u092a\u0924\u094d\u0930 \u0915\u093e \u091a\u092f\u0928", - "Setup": "\u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e", - "Workflow Action Details": "\u0915\u093e\u0930\u094d\u092f\u092a\u094d\u0930\u0935\u093e\u0939 \u0915\u094d\u0930\u093f\u092f\u093e \u0935\u093f\u0935\u0930\u0923", - "Workflow Rule": "\u0935\u0930\u094d\u0915\u092b\u093c\u094d\u0932\u094b \u0928\u093f\u092f\u092e", - "Workflow Rule Details": "\u0935\u0930\u094d\u0915\u092b\u093c\u094d\u0932\u094b \u0928\u093f\u092f\u092e \u0935\u093f\u0935\u0930\u0923", - "Yes": "\u0939\u093e\u0902" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule/locale/hr-doc.json b/setup/doctype/workflow_rule/locale/hr-doc.json deleted file mode 100644 index 731d73339a..0000000000 --- a/setup/doctype/workflow_rule/locale/hr-doc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Action Detail": "Akcija Detalj", - "Action html": "Akcija html", - "Active": "Aktivan", - "Define Rule": "Definiranje pravila", - "Enter message": "Unesite poruku", - "Extra Condition": "Dodatni hotela", - "Inactive": "Neaktivan", - "Intro HTML": "Uvod HTML", - "No": "Ne", - "Raise Exception": "Podignite Iznimka", - "Reject HTML": "Odbaciti HTML", - "Rule Definition": "Pravilo Definicija", - "Rule Name": "Pravilo Ime", - "Rule Priority": "Pravilo Prioritet", - "Rule Status": "Pravilo Status", - "Select Form": "Odaberite obrazac", - "Setup": "Postavljanje", - "Workflow Action Details": "Workflow Akcija Detalji", - "Workflow Rule": "Workflow Pravilo", - "Workflow Rule Details": "Workflow Pravilo Detalji", - "Yes": "Da" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule/locale/nl-doc.json b/setup/doctype/workflow_rule/locale/nl-doc.json deleted file mode 100644 index c7169fbf62..0000000000 --- a/setup/doctype/workflow_rule/locale/nl-doc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Action Detail": "Actie Detail", - "Action html": "Actie html", - "Active": "Actief", - "Define Rule": "Definieer Rule", - "Enter message": "Voer bericht", - "Extra Condition": "Extra Staat", - "Inactive": "Inactieve", - "Intro HTML": "Intro HTML", - "No": "Geen", - "Raise Exception": "Raise Uitzondering", - "Reject HTML": "Weigeren HTML", - "Rule Definition": "Regel Definition", - "Rule Name": "Regelnaam", - "Rule Priority": "Regel Prioriteit", - "Rule Status": "Regel Status", - "Select Form": "Selecteer Formulier", - "Setup": "Setup", - "Workflow Action Details": "Workflow Aktie Details", - "Workflow Rule": "Workflow Rule", - "Workflow Rule Details": "Workflow Rule Details", - "Yes": "Ja" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule/locale/pt-BR-doc.json b/setup/doctype/workflow_rule/locale/pt-BR-doc.json deleted file mode 100644 index 38c0437249..0000000000 --- a/setup/doctype/workflow_rule/locale/pt-BR-doc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Action Detail": "Detalhe da a\u00e7\u00e3o", - "Action html": "A\u00e7\u00e3o html", - "Active": "Ativo", - "Define Rule": "Definir regra", - "Enter message": "Digite a mensagem", - "Extra Condition": "Condi\u00e7\u00e3o extra", - "Inactive": "Inativo", - "Intro HTML": "Intro HTML", - "No": "N\u00e3o", - "Raise Exception": "Levantar Exce\u00e7\u00e3o", - "Reject HTML": "Rejeitar HTML", - "Rule Definition": "Defini\u00e7\u00e3o da regra", - "Rule Name": "Nome da regra", - "Rule Priority": "Prioridade da regra", - "Rule Status": "Estado da regra", - "Select Form": "Selecione o Formul\u00e1rio", - "Setup": "Configura\u00e7\u00e3o", - "Workflow Action Details": "Detalhes da A\u00e7\u00e3o do Fluxo de Trabalho", - "Workflow Rule": "Regra do Fluxo de Trabalho", - "Workflow Rule Details": "Detalhes da Regra do Fluxo de Trabalho", - "Yes": "Sim" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule/locale/pt-doc.json b/setup/doctype/workflow_rule/locale/pt-doc.json deleted file mode 100644 index 745d4e7bbb..0000000000 --- a/setup/doctype/workflow_rule/locale/pt-doc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Action Detail": "Detalhe a\u00e7\u00e3o", - "Action html": "A\u00e7\u00e3o html", - "Active": "Ativo", - "Define Rule": "Definir regra", - "Enter message": "Digite a mensagem", - "Extra Condition": "Condi\u00e7\u00e3o extra", - "Inactive": "Inativo", - "Intro HTML": "Intro HTML", - "No": "N\u00e3o", - "Raise Exception": "Levante Exce\u00e7\u00e3o", - "Reject HTML": "Rejeitar HTML", - "Rule Definition": "Defini\u00e7\u00e3o de regra", - "Rule Name": "Nome da regra", - "Rule Priority": "Prioridade regra", - "Rule Status": "Estado regra", - "Select Form": "Selecione Formul\u00e1rio", - "Setup": "Instala\u00e7\u00e3o", - "Workflow Action Details": "Detalhes da A\u00e7\u00e3o de fluxo de trabalho", - "Workflow Rule": "Regra de fluxo de trabalho", - "Workflow Rule Details": "Detalhes do fluxo de trabalho Regra", - "Yes": "Sim" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule/locale/sr-doc.json b/setup/doctype/workflow_rule/locale/sr-doc.json deleted file mode 100644 index 59082b1d8b..0000000000 --- a/setup/doctype/workflow_rule/locale/sr-doc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Action Detail": "\u0410\u043a\u0446\u0438\u0458\u0430 \u0414\u0435\u0442\u0430\u0459", - "Action html": "\u0410\u043a\u0446\u0438\u0458\u0430 \u0445\u0442\u043c\u043b", - "Active": "\u0410\u043a\u0442\u0438\u0432\u0430\u043d", - "Define Rule": "\u0414\u0435\u0444\u0438\u043d\u0438\u0441\u0430\u045a\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430", - "Enter message": "\u0423\u043d\u0435\u0441\u0438\u0442\u0435 \u043f\u043e\u0440\u0443\u043a\u0443", - "Extra Condition": "\u0415\u043a\u0442\u0440\u0430 \u0421\u0442\u0430\u045a\u0435", - "Inactive": "\u041d\u0435\u0430\u043a\u0442\u0438\u0432\u0430\u043d", - "Intro HTML": "\u0418\u043d\u0442\u0440\u043e \u0425\u0422\u041c\u041b", - "No": "\u041d\u0435", - "Raise Exception": "\u041f\u043e\u0434\u0438\u045b\u0438 \u0415\u043a\u0446\u0435\u043f\u0442\u0438\u043e\u043d", - "Reject HTML": "\u041e\u0434\u0431\u0438\u0442\u0438 \u0425\u0422\u041c\u041b", - "Rule Definition": "\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0414\u0435\u0444\u0438\u043d\u0438\u0446\u0438\u0458\u0430", - "Rule Name": "\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0418\u043c\u0435", - "Rule Priority": "\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u041f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442", - "Rule Status": "\u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0441\u0442\u0430\u0442\u0443\u0441", - "Select Form": "\u0418\u0437\u0430\u0431\u0435\u0440\u0438\u0442\u0435 \u043e\u0431\u0440\u0430\u0437\u0430\u0446", - "Setup": "\u041d\u0430\u043c\u0435\u0448\u0442\u0430\u0459\u043a\u0430", - "Workflow Action Details": "\u0412\u043e\u0440\u043a\u0444\u043b\u043e\u0432 \u0410\u0446\u0442\u0438\u043e\u043d \u0414\u0435\u0442\u0430\u0438\u043b\u0441", - "Workflow Rule": "\u0412\u043e\u0440\u043a\u0444\u043b\u043e\u0432 \u041f\u0440\u0430\u0432\u0438\u043b\u043e", - "Workflow Rule Details": "\u0412\u043e\u0440\u043a\u0444\u043b\u043e\u0432 \u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0414\u0435\u0442\u0430\u0459\u0438", - "Yes": "\u0414\u0430" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule/locale/ta-doc.json b/setup/doctype/workflow_rule/locale/ta-doc.json deleted file mode 100644 index fbb4732a73..0000000000 --- a/setup/doctype/workflow_rule/locale/ta-doc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Action Detail": "\u0b85\u0ba4\u0bbf\u0bb0\u0b9f\u0bbf \u0bb5\u0bbf\u0bb0\u0bbf\u0bb5\u0bbe\u0b95", - "Action html": "\u0b85\u0ba4\u0bbf\u0bb0\u0b9f\u0bbf html", - "Active": "\u0b9a\u0bc6\u0baf\u0bb2\u0bbf\u0bb2\u0bcd", - "Define Rule": "\u0bb5\u0bbf\u0ba4\u0bbf \u0bb5\u0bb0\u0bc8\u0baf\u0bb1\u0bc1\u0b95\u0bcd\u0b95", - "Enter message": "\u0ba4\u0b95\u0bb5\u0bb2\u0bcd", - "Extra Condition": "\u0b95\u0bc2\u0b9f\u0bc1\u0ba4\u0bb2\u0bcd \u0b95\u0ba3\u0bcd\u0b9f\u0bbf\u0bb7\u0ba9\u0bcd", - "Inactive": "\u0b9c\u0b9f\u0bae\u0bbe\u0ba9", - "Intro HTML": "\u0b85\u0bb1\u0bbf\u0bae\u0bc1\u0b95\u0bae\u0bcd HTML", - "No": "\u0b87\u0bb2\u0bcd\u0bb2\u0bc8", - "Raise Exception": "\u0bb5\u0bbf\u0ba4\u0bbf\u0bb5\u0bbf\u0bb2\u0b95\u0bcd\u0b95\u0bc1 \u0b89\u0baf\u0bb0\u0bcd\u0ba4\u0bcd\u0ba4", - "Reject HTML": "HTML \u0ba8\u0bbf\u0bb0\u0bbe\u0b95\u0bb0\u0bbf\u0b95\u0bcd\u0b95", - "Rule Definition": "\u0b86\u0b9f\u0bcd\u0b9a\u0bbf \u0bb5\u0bb0\u0bc8\u0baf\u0bb1\u0bc8", - "Rule Name": "\u0b86\u0b9f\u0bcd\u0b9a\u0bbf \u0baa\u0bc6\u0baf\u0bb0\u0bcd", - "Rule Priority": "\u0b86\u0b9f\u0bcd\u0b9a\u0bbf \u0bae\u0bc1\u0ba9\u0bcd\u0ba9\u0bc1\u0bb0\u0bbf\u0bae\u0bc8", - "Rule Status": "\u0b86\u0b9f\u0bcd\u0b9a\u0bbf \u0ba8\u0bbf\u0bb2\u0bc8\u0bae\u0bc8", - "Select Form": "\u0baa\u0b9f\u0bbf\u0bb5\u0bae\u0bcd \u0ba4\u0bc7\u0bb0\u0bcd\u0bb5\u0bc1", - "Setup": "\u0b85\u0bae\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0bae\u0bc1\u0bb1\u0bc8", - "Workflow Action Details": "\u0baa\u0ba3\u0bbf\u0baf\u0bc7\u0bbe\u0b9f\u0bcd\u0b9f\u0bae\u0bcd \u0b85\u0ba4\u0bbf\u0bb0\u0b9f\u0bbf \u0bb5\u0bbf\u0bb5\u0bb0\u0bae\u0bcd", - "Workflow Rule": "\u0baa\u0ba3\u0bbf\u0baf\u0bc7\u0bbe\u0b9f\u0bcd\u0b9f\u0bae\u0bcd \u0bb5\u0bbf\u0ba4\u0bbf", - "Workflow Rule Details": "\u0baa\u0ba3\u0bbf\u0baf\u0bc7\u0bbe\u0b9f\u0bcd\u0b9f\u0bae\u0bcd \u0bb5\u0bbf\u0ba4\u0bbf \u0bb5\u0bbf\u0bb5\u0bb0\u0bae\u0bcd", - "Yes": "\u0b86\u0bae\u0bcd" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule/locale/th-doc.json b/setup/doctype/workflow_rule/locale/th-doc.json deleted file mode 100644 index 4b3a293312..0000000000 --- a/setup/doctype/workflow_rule/locale/th-doc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "Action Detail": "\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e01\u0e32\u0e23\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23", - "Action html": "html \u0e17\u0e35\u0e48\u0e01\u0e23\u0e30\u0e17\u0e33", - "Active": "\u0e04\u0e25\u0e48\u0e2d\u0e07\u0e41\u0e04\u0e25\u0e48\u0e27", - "Define Rule": "\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e01\u0e0e", - "Enter message": "\u0e1b\u0e49\u0e2d\u0e19\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21", - "Extra Condition": "\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e1e\u0e34\u0e40\u0e28\u0e29", - "Inactive": "\u0e40\u0e09\u0e37\u0e48\u0e2d\u0e22\u0e0a\u0e32", - "Intro HTML": "HTML \u0e41\u0e19\u0e30\u0e19\u0e33", - "No": "\u0e44\u0e21\u0e48", - "Raise Exception": "\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e01\u0e32\u0e23\u0e22\u0e01\u0e40\u0e27\u0e49\u0e19", - "Reject HTML": "\u0e1b\u0e0f\u0e34\u0e40\u0e2a\u0e18 HTML", - "Rule Definition": "\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e01\u0e0e", - "Rule Name": "\u0e0a\u0e37\u0e48\u0e2d\u0e01\u0e0e", - "Rule Priority": "\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e02\u0e2d\u0e07\u0e01\u0e0e", - "Rule Status": "\u0e2a\u0e16\u0e32\u0e19\u0e30\u0e01\u0e0e", - "Select Form": "\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e1f\u0e2d\u0e23\u0e4c\u0e21", - "Setup": "\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07", - "Workflow Action Details": "\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e01\u0e32\u0e23\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19", - "Workflow Rule": "\u0e01\u0e0e\u0e40\u0e27\u0e34\u0e23\u0e4c\u0e01\u0e42\u0e1f\u0e25\u0e27\u0e4c", - "Workflow Rule Details": "\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e01\u0e0e\u0e40\u0e27\u0e34\u0e23\u0e4c\u0e01\u0e42\u0e1f\u0e25\u0e27\u0e4c", - "Yes": "\u0e43\u0e0a\u0e48" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule/workflow_rule.js b/setup/doctype/workflow_rule/workflow_rule.js deleted file mode 100644 index a506101894..0000000000 --- a/setup/doctype/workflow_rule/workflow_rule.js +++ /dev/null @@ -1,60 +0,0 @@ -// ERPNext - web based ERP (http://erpnext.com) -// Copyright (C) 2012 Web Notes Technologies Pvt Ltd -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - - - -//--------- ONLOAD ------------- -cur_frm.cscript.onload = function(doc, cdt, cdn) { - -} - -cur_frm.cscript.refresh = function(doc, cdt, cdn) { - -} - -// Show Label name of fields for selected Doctype -// --------------------------- - -cur_frm.cscript.select_form = function(doc, cdt, cdn){ - var mydoc = doc - - var call_back_action = function(mydoc){ - $c('runserverobj', args={'method':'field_label_list', 'docs':wn.model.compress (make_doclist (mydoc.doctype,mydoc.name))}, - function(r, rt) { - var doc = locals[mydoc.doctype][mydoc.name]; - cur_frm.fields_dict.workflow_action_details.grid.get_field("action_field").df.options = r.message; - } - ); - } - - var call_back_rule = function(mydoc){ - $c('runserverobj', args={'method':'compare_field', 'docs':wn.model.compress (make_doclist (mydoc.doctype,mydoc.name))}, - function(r, rt) { - var doc = locals[mydoc.doctype][mydoc.name]; - cur_frm.fields_dict.workflow_rule_details.grid.get_field("comparing_field").df.options = r.message; - call_back_action(mydoc) - } - ); - } - - $c('runserverobj', args={'method':'maindoc_field', 'docs':wn.model.compress (make_doclist (doc.doctype,doc.name))}, - function(r, rt) { - var doc = locals[mydoc.doctype][mydoc.name]; - cur_frm.fields_dict.workflow_rule_details.grid.get_field("rule_field").df.options = r.message; - call_back_rule(mydoc) - } - ); -} diff --git a/setup/doctype/workflow_rule/workflow_rule.py b/setup/doctype/workflow_rule/workflow_rule.py deleted file mode 100644 index 1c2514d691..0000000000 --- a/setup/doctype/workflow_rule/workflow_rule.py +++ /dev/null @@ -1,293 +0,0 @@ -# ERPNext - web based ERP (http://erpnext.com) -# Copyright (C) 2012 Web Notes Technologies Pvt Ltd -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -from __future__ import unicode_literals -import webnotes - -from webnotes.utils import cstr -from webnotes.model import db_exists -from webnotes.model.bean import getlist, copy_doclist -from webnotes import form, msgprint - -sql = webnotes.conn.sql - - - -class DocType: - def __init__(self, doc, doclist=[]): - self.doc, self.doclist = doc, doclist - - self.field_list=[] - field_info = sql("select label,fieldtype,options,fieldname from `tabDocField` where parent='%s' and fieldtype not in('Section Break','Column Break','Text','Small Text','Text Editor', 'Time', 'Check', 'Button','Code','HTML','Image','Blob','Password')"%self.doc.select_form) - for f in field_info: - sl=[] - for x in f: - sl.append(x) - self.field_list.append(sl) - -#list of labels - def field_label_list(self): - label= '' - for fi in self.field_list: - if fi[1] !='Table': - label += "\n" + fi[0] - - return label - - - def compare_field(self): - ret1='' - for fi in self.field_list: - if fi[1] =='Table': - flist=sql("select label from tabDocField where parent='%s' and fieldtype in ('Data', 'Select', 'Int','Currency','Float','Link')"%fi[2]) - for x in flist: - ret1 += "\n" + fi[2] + ':' + x[0] - else: - ret1 += "\n" + cstr(self.doc.select_form) + ':' + fi[0] - - return cstr(ret1) - -#list of all fields for which conditions can be set - def maindoc_field(self): - ret = '' - for fi in self.field_list: - if fi[1] !='Select' or fi[1] !='Link' or fi[1] !='Table': - ret += "\n" + cstr(self.doc.select_form) + ':' + fi[0] - elif fi[1] =='Select': - op = fi[2].split(':') - if op[0] != 'link': - ret += "\n" + cstr(self.doc.select_form) + ':' +fi[0] - - #child table field list - for fi in self.field_list: - if fi[1] == 'Table': - flist=sql("select label from tabDocField where parent='%s' and fieldtype in ('Data', 'Select', 'Int','Currency','Float','Link')"%fi[2]) - for x in flist: - ret += "\n" + fi[2] + ':' + x[0] - - # linked doctype field list - for fi in self.field_list: - if fi[1] == 'Link': - flist=sql("select label from tabDocField where parent='%s' and fieldtype in ('Data', 'Int', 'Select','Currency','Float','Link')"%fi[2]) - for f in flist: - ret += "\n" + fi[0] + ':' +f[0] - elif fi[1] == 'Select': - op = fi[2].split(':') - if op[0] == 'link': - flist=sql("select label from tabDocField where parent='%s' and fieldtype in ('Data', 'Select', 'Int','Currency','Float','Link')"%op[1]) - for f in flist: - ret += "\n" + fi[0] + ':' +f[0] - - return cstr(ret) - - #table name of the selected doctype - def child_doc(self): - lst=[] - for fi in self.field_list: - if fi[1] == 'Table': - lst.append(fi[2]) - - return lst - - # function for finding fieldname,datatype of mentioned label - def field_info(self,label,parent): - field_name=sql("select fieldname from tabDocField where parent='%s' and label='%s'" %(parent,label))[0][0] - if field_name: - datatype=sql("select fieldtype from `tabDocField` where fieldname='%s' and parent='%s'" %(field_name,parent))[0][0] - ret={'fieldnm':field_name,'datatype':datatype} - - return ret - - def compare_string(self,first,second): - if first.lower()==second.lower(): - return 'true' - else: - return 'false' - -#evalute operator - def eval_operator(self,op): - op_sign ='' - if op=='Equals': - op_sign='==' - elif op=='Not Equals': - op_sign='!=' - elif op=='Greater than': - op_sign='>' - elif op=='Greater than or Equals': - op_sign='>=' - elif op=='Less than': - op_sign='<' - elif op=='Less than or Equals': - op_sign='<=' - - return op_sign - -#evaluation condition - def eval_condition(self,field_dict,form_val,value,operator): - - if field_dict['datatype']=='Data' or field_dict['datatype']=='Select' or field_dict['datatype'] =='Link': - #msgprint("not eval") - if self.compare_string(cstr(form_val),cstr(value))=='false': - cond_hold='No' - else: - cond_hold='Yes' - else: - #msgprint("eval") - op_sign = self.eval_operator(operator) - chk_cond=str(form_val) + str(op_sign) + str(value) - #msgprint(chk_cond) - if eval(chk_cond): - cond_hold='Yes' - else: - cond_hold='No' - #msgprint(cond_hold) - return cond_hold - - -# fetching the value from the form - def find_value(self,fld_nm,tab_nm,rec_nm,child=0): - if child == 0: - form_val=sql("select %s from `tab%s` where name='%s'"%(fld_nm,tab_nm,rec_nm)) - - elif child == 1: - form_val=sql("select %s from `tab%s` where parent='%s'"%(fld_nm,tab_nm,rec_nm)) - - return form_val and form_val[0][0] - -# if the comparing value is not entered manually but fetching from some other field - def compare_field_not_manual(self,comparing_field): - chk_with_value ='' - temp_val = comparing_field.split(':') - if temp_val[0] == self.doc.select_form: - field_cf = self.field_info(temp_val[1],self.doc.select_form) - val_cf=self.find_value(field_cf['fieldnm'],self.doc.select_form,form_obj.doc.name) - chk_with_value = val_cf - elif temp_val[0] in child_list: - field_cf = self.field_info(second_label,first_label) - val_cf=self.find_value(field_cf['fieldnm'],first_label,form_obj.doc.name,1) - chk_with_value = val_cf - - return chk_with_value -# checking with main doctype - def chk_from_main_dt(self,label1,value,operator,form_obj): - cond_hold = '' - field_dict = self.field_info(label1,self.doc.select_form) #getting fieldname info - form_val=self.find_value(field_dict['fieldnm'],self.doc.select_form,form_obj.doc.name) # find value - #msgprint(cstr(form_val)) - if form_val : - cond_hold = self.eval_condition(field_dict,form_val,value,operator) - elif not form_val and field_dict['datatype'] =='Currency' or field_dict['datatype'] =='Float' or field_dict['datatype'] =='Int': - #msgprint("1") - form_val = 0.0 - cond_hold = self.eval_condition(field_dict,form_val,value,operator) - return cond_hold - -#checking with child doctype - def chk_from_child_dt(self,first_label,second_label,value,operator,form_obj): - cond_hold = '' - field_dict = self.field_info(second_label,first_label) - form_val=self.find_value(field_dict['fieldnm'],first_label,form_obj.doc.name,1) #fetching the value in current form from a table - if form_val or form_val==0: - cond_hold = self.eval_condition(field_dict,form_val,value,operator) - - return cond_hold - - -# if checking is with any linked doctype means first_label field from the doctype for which rule is given and second_label field from the doctype with which first_label is linked - def chk_from_link_dt(self,first_label,second_label,form_obj,value,operator): - cond_hold='' - field_dict_first = self.field_info(first_label,self.doc.select_form) - for x in self.field_list: - if x[3] == field_dict_first['fieldnm']: - linked_to = x[2] - - lt = linked_to.split(':') - if lt[0] == 'link': - field_dict_second = self.field_info(second_label,lt[1]) - link_val=sql("select %s from `tab%s` where name='%s'"%(field_dict_first['fieldnm'],self.doc.select_form,form_obj.doc.name)) - if link_val and link_val[0][0]: - form_val = self.find_value(field_dict_second['fieldnm'],lt[1],link_val[0][0]) - if form_val : - cond_hold = self.eval_condition(field_dict_second,form_val,value,operator) - - else: - field_dict_second = self.field_info(second_label,lt[0]) - link_val=sql("select %s from `tab%s` where name='%s'"%(field_dict_first['fieldnm'],self.doc.select_form,form_obj.doc.name)) - if link_val and link_val[0][0]: - form_val = self.find_value(field_dict_second['fieldnm'],lt[0],link_val[0][0]) - if form_val : - cond_hold = self.eval_condition(field_dict_second,form_val,value,operator) - - return cond_hold - - - def evalute_rule(self,form_obj): - #msgprint(form_obj.doc.name) - child_list = self.child_doc() - all_cond_hold='' - for d in getlist(self.doclist,'workflow_rule_details'): - label = d.rule_field.split(':') #break up checking condition - - #findout the value with which condition will be checked - if d.value: - chk_with_value = d.value - elif d.comparing_field: - chk_with_value = self.compare_field_not_manual(d.comparing_field) - - #msgprint(label) - # label[0] is doctype name for which rule is given, label[1] field name of that doctype - if label[0] == self.doc.select_form: - cond_hold = self.chk_from_main_dt(label[1],chk_with_value,d.operator,form_obj) - if cond_hold =='No': - if d.exception == 'Yes': - msgprint(d.message) - raise Exception - elif d.exception=='No' or d.exception=='': - msgprint(d.message) - all_cond_hold = 'No' - break - elif cond_hold =='Yes': - all_cond_hold ='Yes' - - #label[0] is child doctype name , label[1] is child doctype field name - elif label[0] in child_list: - cond_hold = self.chk_from_child_dt(label[0],label[1],chk_with_value,d.operator,form_obj) - if cond_hold =='No': - if d.exception == 'Yes': - msgprint(d.message) - raise Exception - elif d.exception=='No' or d.exception=='': - msgprint(d.message) - all_cond_hold = 'No' - break - elif cond_hold =='Yes': - all_cond_hold ='Yes' - - # if checking is with any linked doctype means label[0] field from the doctype for which rule is given and label[1] field from the doctype with which label[0] is linked - else: - cond_hold=self.chk_from_link_dt(label[0],label[1],form_obj,chk_with_value,d.operator) - if cond_hold =='No': - if d.exception == 'Yes': - msgprint(d.message) - raise Exception - elif d.exception=='No' or d.exception=='': - msgprint(d.message) - all_cond_hold = 'No' - break - elif cond_hold =='Yes': - all_cond_hold ='Yes' - - return all_cond_hold diff --git a/setup/doctype/workflow_rule/workflow_rule.txt b/setup/doctype/workflow_rule/workflow_rule.txt deleted file mode 100644 index 0c1257f729..0000000000 --- a/setup/doctype/workflow_rule/workflow_rule.txt +++ /dev/null @@ -1,195 +0,0 @@ -[ - { - "creation": "2012-03-27 14:36:26", - "docstatus": 0, - "modified": "2012-03-27 14:36:26", - "modified_by": "Administrator", - "owner": "swarnalata@webnotestech.com" - }, - { - "autoname": "field:rule_name", - "doctype": "DocType", - "document_type": "Master", - "module": "Setup", - "name": "__common__", - "search_fields": "select_form,rule_status", - "section_style": "Tray", - "show_in_menu": 0, - "version": 31 - }, - { - "doctype": "DocField", - "name": "__common__", - "parent": "Workflow Rule", - "parentfield": "fields", - "parenttype": "DocType", - "permlevel": 0 - }, - { - "create": 1, - "doctype": "DocPerm", - "name": "__common__", - "parent": "Workflow Rule", - "parentfield": "permissions", - "parenttype": "DocType", - "permlevel": 0, - "read": 1, - "report": 1, - "role": "System Manager", - "write": 1 - }, - { - "doctype": "DocType", - "name": "Workflow Rule" - }, - { - "doctype": "DocPerm" - }, - { - "doctype": "DocField", - "fieldname": "rule_definition", - "fieldtype": "Section Break", - "label": "Rule Definition", - "oldfieldtype": "Section Break" - }, - { - "doctype": "DocField", - "fieldname": "intro_html", - "fieldtype": "HTML", - "label": "Intro HTML", - "oldfieldtype": "HTML", - "options": "Select form for which you want to define rules,set priority & status." - }, - { - "doctype": "DocField", - "fieldname": "rule_name", - "fieldtype": "Data", - "label": "Rule Name", - "oldfieldname": "rule_name", - "oldfieldtype": "Data", - "reqd": 1 - }, - { - "doctype": "DocField", - "fieldname": "rule_status", - "fieldtype": "Select", - "in_filter": 1, - "label": "Rule Status", - "oldfieldname": "rule_status", - "oldfieldtype": "Select", - "options": "\nActive\nInactive", - "reqd": 1, - "search_index": 0 - }, - { - "doctype": "DocField", - "fieldname": "select_form", - "fieldtype": "Link", - "in_filter": 1, - "label": "Select Form", - "oldfieldname": "select_form", - "oldfieldtype": "Link", - "options": "DocType", - "reqd": 1, - "search_index": 1, - "trigger": "Client" - }, - { - "doctype": "DocField", - "fieldname": "rule_priority", - "fieldtype": "Int", - "label": "Rule Priority", - "oldfieldname": "rule_priority", - "oldfieldtype": "Int", - "reqd": 0 - }, - { - "doctype": "DocField", - "fieldname": "define_rule", - "fieldtype": "Section Break", - "label": "Define Rule", - "oldfieldtype": "Section Break", - "options": "Simple" - }, - { - "doctype": "DocField", - "fieldname": "workflow_rule_details", - "fieldtype": "Table", - "label": "Workflow Rule Details", - "oldfieldname": "workflow_rule_details", - "oldfieldtype": "Table", - "options": "Workflow Rule Detail", - "width": "100px" - }, - { - "doctype": "DocField", - "fieldname": "extra_condition", - "fieldtype": "Code", - "hidden": 1, - "label": "Extra Condition", - "oldfieldname": "extra_condition", - "oldfieldtype": "Code", - "print_hide": 1 - }, - { - "doctype": "DocField", - "fieldname": "action_detail", - "fieldtype": "Section Break", - "label": "Action Detail", - "oldfieldtype": "Section Break" - }, - { - "doctype": "DocField", - "fieldname": "action_html", - "fieldtype": "HTML", - "label": "Action html", - "oldfieldtype": "HTML", - "options": "Specify actions to be taken when conditions hold satisfied" - }, - { - "doctype": "DocField", - "fieldname": "workflow_action_details", - "fieldtype": "Table", - "label": "Workflow Action Details", - "oldfieldname": "workflow_action_details", - "oldfieldtype": "Table", - "options": "Workflow Action Detail" - }, - { - "doctype": "DocField", - "fieldname": "reject_html", - "fieldtype": "HTML", - "hidden": 1, - "label": "Reject HTML", - "no_copy": 1, - "oldfieldtype": "HTML", - "options": "If any condition holds false the following message will be displayed . If you wish to stop rule engine when condition holds false then set 'Raise Exception' as 'Yes' otherwise keep this field blank or 'No'.", - "print_hide": 1, - "report_hide": 1 - }, - { - "doctype": "DocField", - "fieldname": "message", - "fieldtype": "Text", - "hidden": 1, - "label": "Enter message", - "no_copy": 1, - "oldfieldname": "message", - "oldfieldtype": "Text", - "print_hide": 1, - "report_hide": 1 - }, - { - "doctype": "DocField", - "fieldname": "raise_exception", - "fieldtype": "Select", - "hidden": 1, - "label": "Raise Exception", - "no_copy": 1, - "oldfieldname": "raise_exception", - "oldfieldtype": "Select", - "options": "\nYes\nNo", - "print_hide": 1, - "report_hide": 1 - } -] \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/__init__.py b/setup/doctype/workflow_rule_detail/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/setup/doctype/workflow_rule_detail/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/setup/doctype/workflow_rule_detail/locale/_messages_doc.json b/setup/doctype/workflow_rule_detail/locale/_messages_doc.json deleted file mode 100644 index befc8b7f49..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/_messages_doc.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - "not equal", - "Field from other forms", - "Operator", - "Setup", - "No", - "equal", - "greater than", - "Field", - "Value", - "greater than equal", - "Raise Exception", - "Yes", - "less than equal", - "Message when Cond. False", - "Workflow Rule Detail", - "less than" -] \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/locale/ar-doc.json b/setup/doctype/workflow_rule_detail/locale/ar-doc.json deleted file mode 100644 index 02ec639a96..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/ar-doc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "Field": "\u062d\u0642\u0644", - "Field from other forms": "\u062d\u0642\u0644 \u0645\u0646 \u0627\u0644\u0623\u0634\u0643\u0627\u0644 \u0627\u0644\u0623\u062e\u0631\u0649", - "Message when Cond. False": "\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0639\u0646\u062f\u0645\u0627 \u0643\u0648\u0646\u062f. \u0643\u0627\u0630\u0628", - "No": "\u0644\u0627", - "Operator": "\u0639\u0627\u0645\u0644", - "Raise Exception": "\u0631\u0641\u0639 \u0627\u0633\u062a\u062b\u0646\u0627\u0621", - "Setup": "\u0627\u0644\u0625\u0639\u062f\u0627\u062f", - "Value": "\u0642\u064a\u0645\u0629", - "Workflow Rule Detail": "\u062a\u0641\u0627\u0635\u064a\u0644 \u0633\u064a\u0631 \u0627\u0644\u0639\u0645\u0644 \u0627\u0644\u0642\u0627\u0639\u062f\u0629", - "Yes": "\u0646\u0639\u0645", - "[]": "[]", - "equal": "\u0645\u062a\u0633\u0627\u0648", - "greater than": "\u0623\u0643\u0628\u0631 \u0645\u0646", - "greater than equal": "\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0645\u0633\u0627\u0648\u0627\u0629", - "less than": "\u0623\u0642\u0644 \u0645\u0646", - "less than equal": "\u0623\u0642\u0644 \u0645\u0646 \u0627\u0644\u0645\u0633\u0627\u0648\u0627\u0629", - "not equal": "\u0644\u0627 \u062a\u0633\u0627\u0648\u064a" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/locale/de-doc.json b/setup/doctype/workflow_rule_detail/locale/de-doc.json deleted file mode 100644 index a95a89e77f..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/de-doc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "Field": "Feld", - "Field from other forms": "Feld von anderen Formen", - "Message when Cond. False": "Nachricht Wenn Cond. Falsch", - "No": "Auf", - "Operator": "Operator", - "Raise Exception": "Raise Exception", - "Setup": "Setup", - "Value": "Wert", - "Workflow Rule Detail": "Workflow Rule Details", - "Yes": "Ja", - "equal": "gleich", - "greater than": "gr\u00f6\u00dfer als", - "greater than equal": "gr\u00f6\u00dfer gleich", - "less than": "weniger als", - "less than equal": "weniger als gleich", - "not equal": "ungleich" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/locale/es-doc.json b/setup/doctype/workflow_rule_detail/locale/es-doc.json deleted file mode 100644 index 54a1ed1b2f..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/es-doc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "Field": "Campo", - "Field from other forms": "Campo de otras formas", - "Message when Cond. False": "Mensaje cuando Cond. Falso", - "No": "No", - "Operator": "Operador", - "Raise Exception": "Levante Excepci\u00f3n", - "Setup": "Disposici\u00f3n", - "Value": "Valor", - "Workflow Rule Detail": "Detalle de la regla de flujo de trabajo", - "Yes": "S\u00ed", - "[]": "[]", - "equal": "igual", - "greater than": "m\u00e1s que", - "greater than equal": "mayor o igual", - "less than": "menos que", - "less than equal": "menos de igual", - "not equal": "no igual" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/locale/fr-doc.json b/setup/doctype/workflow_rule_detail/locale/fr-doc.json deleted file mode 100644 index ab4267137b..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/fr-doc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "Field": "Champ", - "Field from other forms": "Champ d'autres formes", - "Message when Cond. False": "Message lorsque Cond. Faux", - "No": "Aucun", - "Operator": "Op\u00e9rateur", - "Raise Exception": "Soulever Exception", - "Setup": "Installation", - "Value": "Valeur", - "Workflow Rule Detail": "D\u00e9tail r\u00e8gle de workflow", - "Yes": "Oui", - "[]": "[]", - "equal": "\u00e9gal", - "greater than": "sup\u00e9rieure \u00e0", - "greater than equal": "sup\u00e9rieur ou \u00e9gal", - "less than": "moins que", - "less than equal": "moins \u00e9gal", - "not equal": "pas \u00e9gal" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/locale/hi-doc.json b/setup/doctype/workflow_rule_detail/locale/hi-doc.json deleted file mode 100644 index 109dc7fa31..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/hi-doc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "Field": "\u0915\u094d\u0937\u0947\u0924\u094d\u0930", - "Field from other forms": "\u0905\u0928\u094d\u092f \u0930\u0942\u092a\u094b\u0902 \u0938\u0947 \u092b\u0940\u0932\u094d\u0921", - "Message when Cond. False": "\u091c\u092c Cond \u0938\u0902\u0926\u0947\u0936. \u091d\u0942\u0920\u093e", - "No": "\u0928\u0939\u0940\u0902", - "Operator": "\u0911\u092a\u0930\u0947\u091f\u0930", - "Raise Exception": "\u0905\u092a\u0935\u093e\u0926 \u0909\u0920\u093e\u090f\u0901", - "Setup": "\u0935\u094d\u092f\u0935\u0938\u094d\u0925\u093e", - "Value": "\u092e\u0942\u0932\u094d\u092f", - "Workflow Rule Detail": "\u0935\u0930\u094d\u0915\u092b\u093c\u094d\u0932\u094b \u0928\u093f\u092f\u092e \u0935\u093f\u0938\u094d\u0924\u093e\u0930", - "Yes": "\u0939\u093e\u0902", - "[]": "[]", - "equal": "\u092c\u0930\u093e\u092c\u0930", - "greater than": "\u0938\u0947 \u0905\u0927\u093f\u0915 \u0938\u0947 \u0905\u0927\u093f\u0915", - "greater than equal": "\u092c\u0930\u093e\u092c\u0930 \u092f\u093e \u0905\u0927\u093f\u0915", - "less than": "\u0915\u0940 \u0924\u0941\u0932\u0928\u093e \u092e\u0947\u0902 \u0915\u092e", - "less than equal": "\u092c\u0930\u093e\u092c\u0930 \u092f\u093e \u0915\u092e", - "not equal": "\u092c\u0930\u093e\u092c\u0930 \u0928\u0939\u0940\u0902" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/locale/hr-doc.json b/setup/doctype/workflow_rule_detail/locale/hr-doc.json deleted file mode 100644 index a523b06ff5..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/hr-doc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "Field": "Polje", - "Field from other forms": "Podru\u010dje od drugih oblika", - "Message when Cond. False": "Poruka kad Uslov. La\u017ean", - "No": "Ne", - "Operator": "Operator", - "Raise Exception": "Podignite Iznimka", - "Setup": "Postavljanje", - "Value": "Vrijednost", - "Workflow Rule Detail": "Workflow Pravilo Detalj", - "Yes": "Da", - "[]": "[]", - "equal": "jednak", - "greater than": "ve\u0107i od", - "greater than equal": "ve\u0107e od jednako", - "less than": "manje od", - "less than equal": "manje od jednako", - "not equal": "nije jednako" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/locale/nl-doc.json b/setup/doctype/workflow_rule_detail/locale/nl-doc.json deleted file mode 100644 index 800b634b48..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/nl-doc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "Field": "Veld", - "Field from other forms": "Veld van andere vormen", - "Message when Cond. False": "Bericht wanneer Cond. Vals", - "No": "Geen", - "Operator": "Operator", - "Raise Exception": "Raise Uitzondering", - "Setup": "Setup", - "Value": "Waarde", - "Workflow Rule Detail": "Workflow Regel Detail", - "Yes": "Ja", - "[]": "[]", - "equal": "gelijk", - "greater than": "groter dan", - "greater than equal": "groter dan of gelijk", - "less than": "minder dan", - "less than equal": "minder dan gelijk", - "not equal": "ongelijk" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/locale/pt-BR-doc.json b/setup/doctype/workflow_rule_detail/locale/pt-BR-doc.json deleted file mode 100644 index ee1a847316..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/pt-BR-doc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "Field": "Campo", - "Field from other forms": "Campo de outros formul\u00e1rios", - "Message when Cond. False": "Mensagem quando Condi\u00e7\u00e3o for Falsa", - "No": "N\u00e3o", - "Operator": "Operador", - "Raise Exception": "Levantar Exce\u00e7\u00e3o", - "Setup": "Configura\u00e7\u00e3o", - "Value": "Valor", - "Workflow Rule Detail": "Detalhe da Regra do Fluxo de Trabalho", - "Yes": "Sim", - "equal": "igual", - "greater than": "maior que", - "greater than equal": "maior ou igual", - "less than": "menor que", - "less than equal": "menor ou igual", - "not equal": "n\u00e3o igual" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/locale/pt-doc.json b/setup/doctype/workflow_rule_detail/locale/pt-doc.json deleted file mode 100644 index ec96ab459e..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/pt-doc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "Field": "Campo", - "Field from other forms": "Campo de outras formas", - "Message when Cond. False": "Mensagem quando Cond. Falso", - "No": "N\u00e3o", - "Operator": "Operador", - "Raise Exception": "Levante Exce\u00e7\u00e3o", - "Setup": "Instala\u00e7\u00e3o", - "Value": "Valor", - "Workflow Rule Detail": "Detalhe regra de fluxo de trabalho", - "Yes": "Sim", - "[]": "[]", - "equal": "igual", - "greater than": "maior do que", - "greater than equal": "maior ou igual", - "less than": "menor que", - "less than equal": "menor ou igual", - "not equal": "n\u00e3o igual" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/locale/sr-doc.json b/setup/doctype/workflow_rule_detail/locale/sr-doc.json deleted file mode 100644 index 3e41e1f752..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/sr-doc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "Field": "\u041f\u043e\u0459\u0435", - "Field from other forms": "\u041e\u0431\u043b\u0430\u0441\u0442 \u043e\u0434 \u0434\u0440\u0443\u0433\u0438\u0445 \u043e\u0431\u043b\u0438\u043a\u0430", - "Message when Cond. False": "\u041f\u043e\u0440\u0443\u043a\u0430 \u043a\u0430\u0434 \u0423\u0441\u043b\u043e\u0432. \u041b\u0430\u0436\u0430\u043d", - "No": "\u041d\u0435", - "Operator": "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440", - "Raise Exception": "\u041f\u043e\u0434\u0438\u045b\u0438 \u0415\u043a\u0446\u0435\u043f\u0442\u0438\u043e\u043d", - "Setup": "\u041d\u0430\u043c\u0435\u0448\u0442\u0430\u0459\u043a\u0430", - "Value": "\u0412\u0440\u0435\u0434\u043d\u043e\u0441\u0442", - "Workflow Rule Detail": "\u0412\u043e\u0440\u043a\u0444\u043b\u043e\u0432 \u041f\u0440\u0430\u0432\u0438\u043b\u043e \u0414\u0435\u0442\u0430\u0459", - "Yes": "\u0414\u0430", - "[]": "[]", - "equal": "\u0458\u0435\u0434\u043d\u0430\u043a", - "greater than": "\u0432\u0435\u045b\u0438 \u043e\u0434", - "greater than equal": "\u0432\u0435\u045b\u0438 \u043e\u0434 \u0458\u0435\u0434\u043d\u0430\u043a\u043e\u0433", - "less than": "\u043c\u0430\u045a\u0435 \u043e\u0434", - "less than equal": "\u043c\u0430\u045a\u0435 \u043e\u0434 \u0458\u0435\u0434\u043d\u0430\u043a\u043e\u0433", - "not equal": "\u043d\u0438\u0441\u0443 \u0458\u0435\u0434\u043d\u0430\u043a\u0438" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/locale/ta-doc.json b/setup/doctype/workflow_rule_detail/locale/ta-doc.json deleted file mode 100644 index d85d159c21..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/ta-doc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "Field": "\u0baa\u0bc1\u0bb2\u0bae\u0bcd", - "Field from other forms": "\u0baa\u0bbf\u0bb1 \u0b87\u0bb0\u0bc1\u0ba8\u0bcd\u0ba4\u0bc1 \u0baa\u0bc1\u0bb2\u0bae\u0bcd", - "Message when Cond. False": "\u0b9a\u0bc6\u0baf\u0bcd\u0ba4\u0bbf \u0baa\u0bc7\u0bbe\u0ba4\u0bc1 \u0ba8\u0bbf\u0bb2\u0bc8. \u0ba4\u0bb5\u0bb1\u0bbe\u0ba9", - "No": "\u0b87\u0bb2\u0bcd\u0bb2\u0bc8", - "Operator": "\u0b86\u0baa\u0bb0\u0bc7\u0b9f\u0bcd\u0b9f\u0bb0\u0bcd", - "Raise Exception": "\u0bb5\u0bbf\u0ba4\u0bbf\u0bb5\u0bbf\u0bb2\u0b95\u0bcd\u0b95\u0bc1 \u0b89\u0baf\u0bb0\u0bcd\u0ba4\u0bcd\u0ba4", - "Setup": "\u0b85\u0bae\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0bae\u0bc1\u0bb1\u0bc8", - "Value": "\u0bae\u0ba4\u0bbf\u0baa\u0bcd\u0baa\u0bc1", - "Workflow Rule Detail": "\u0baa\u0ba3\u0bbf\u0baf\u0bc7\u0bbe\u0b9f\u0bcd\u0b9f\u0bae\u0bcd \u0bb5\u0bbf\u0ba4\u0bbf \u0bb5\u0bbf\u0bb0\u0bbf\u0bb5\u0bbe\u0b95", - "Yes": "\u0b86\u0bae\u0bcd", - "[]": "[]", - "equal": "\u0b87\u0ba3\u0bc8\u0baf\u0bbe\u0ba9", - "greater than": "\u0bb5\u0bbf\u0b9f\u0baa\u0bcd\u0baa\u0bc6\u0bb0\u0bbf\u0ba4\u0bc1", - "greater than equal": "\u0b9a\u0bae \u0b85\u0ba4\u0bbf\u0b95\u0bae\u0bbe\u0b95", - "less than": "\u0b95\u0bc1\u0bb1\u0bc8\u0bb5\u0bbe\u0ba9", - "less than equal": "\u0b9a\u0bae \u0b95\u0bc1\u0bb1\u0bc8\u0bb5\u0bbe\u0ba9", - "not equal": "\u0b9a\u0bae \u0b87\u0bb2\u0bcd\u0bb2\u0bc8" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/locale/th-doc.json b/setup/doctype/workflow_rule_detail/locale/th-doc.json deleted file mode 100644 index 1ff91f70ab..0000000000 --- a/setup/doctype/workflow_rule_detail/locale/th-doc.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "Field": "\u0e2a\u0e19\u0e32\u0e21", - "Field from other forms": "\u0e40\u0e02\u0e15\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e2d\u0e37\u0e48\u0e19 \u0e46", - "Message when Cond. False": "\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e40\u0e21\u0e37\u0e48\u0e2d Cond \u0e40\u0e17\u0e47\u0e08", - "No": "\u0e44\u0e21\u0e48", - "Operator": "\u0e1c\u0e39\u0e49\u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\u0e01\u0e32\u0e23", - "Raise Exception": "\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e01\u0e32\u0e23\u0e22\u0e01\u0e40\u0e27\u0e49\u0e19", - "Setup": "\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07", - "Value": "\u0e21\u0e39\u0e25\u0e04\u0e48\u0e32", - "Workflow Rule Detail": "\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e01\u0e0e\u0e40\u0e27\u0e34\u0e23\u0e4c\u0e01\u0e42\u0e1f\u0e25\u0e27\u0e4c", - "Yes": "\u0e43\u0e0a\u0e48", - "[]": "[]", - "equal": "\u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e19", - "greater than": "\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32", - "greater than equal": "\u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32\u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e1a", - "less than": "\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32", - "less than equal": "\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32\u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e1a", - "not equal": "\u0e44\u0e21\u0e48\u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e1a" -} \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/workflow_rule_detail.py b/setup/doctype/workflow_rule_detail/workflow_rule_detail.py deleted file mode 100644 index 7f48feb2eb..0000000000 --- a/setup/doctype/workflow_rule_detail/workflow_rule_detail.py +++ /dev/null @@ -1,22 +0,0 @@ -# ERPNext - web based ERP (http://erpnext.com) -# Copyright (C) 2012 Web Notes Technologies Pvt Ltd -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -from __future__ import unicode_literals -import webnotes - -class DocType: - def __init__(self, d, dl): - self.doc, self.doclist = d, dl \ No newline at end of file diff --git a/setup/doctype/workflow_rule_detail/workflow_rule_detail.txt b/setup/doctype/workflow_rule_detail/workflow_rule_detail.txt deleted file mode 100644 index 1aee3fed19..0000000000 --- a/setup/doctype/workflow_rule_detail/workflow_rule_detail.txt +++ /dev/null @@ -1,84 +0,0 @@ -[ - { - "creation": "2013-02-22 01:27:59", - "docstatus": 0, - "modified": "2013-03-07 07:03:34", - "modified_by": "Administrator", - "owner": "swarnalata@webnotestech.com" - }, - { - "doctype": "DocType", - "istable": 1, - "module": "Setup", - "name": "__common__" - }, - { - "doctype": "DocField", - "name": "__common__", - "parent": "Workflow Rule Detail", - "parentfield": "fields", - "parenttype": "DocType", - "permlevel": 0 - }, - { - "doctype": "DocType", - "name": "Workflow Rule Detail" - }, - { - "doctype": "DocField", - "fieldname": "rule_field", - "fieldtype": "Select", - "label": "Field", - "oldfieldname": "rule_field", - "oldfieldtype": "Select", - "options": "[]", - "print_width": "200px", - "width": "200px" - }, - { - "doctype": "DocField", - "fieldname": "operator", - "fieldtype": "Select", - "label": "Operator", - "oldfieldname": "operator", - "oldfieldtype": "Select", - "options": "\nequal\nnot equal\ngreater than\ngreater than equal\nless than\nless than equal" - }, - { - "doctype": "DocField", - "fieldname": "value", - "fieldtype": "Data", - "label": "Value", - "oldfieldname": "value", - "oldfieldtype": "Data", - "print_width": "100px", - "width": "100px" - }, - { - "doctype": "DocField", - "fieldname": "comparing_field", - "fieldtype": "Select", - "label": "Field from other forms", - "oldfieldname": "comparing_field", - "oldfieldtype": "Select" - }, - { - "doctype": "DocField", - "fieldname": "message", - "fieldtype": "Data", - "label": "Message when Cond. False", - "oldfieldname": "message", - "oldfieldtype": "Data", - "print_width": "200px", - "width": "200px" - }, - { - "doctype": "DocField", - "fieldname": "exception", - "fieldtype": "Select", - "label": "Raise Exception", - "oldfieldname": "exception", - "oldfieldtype": "Select", - "options": "\nYes\nNo" - } -] \ No newline at end of file diff --git a/stock/doctype/warehouse/warehouse.py b/stock/doctype/warehouse/warehouse.py index dc8bfea0a9..264e459e56 100644 --- a/stock/doctype/warehouse/warehouse.py +++ b/stock/doctype/warehouse/warehouse.py @@ -65,10 +65,6 @@ class DocType: msgprint("[Stock Update] Ignored %s since it is not a stock item" % args.get("item_code")) - def check_state(self): - return "\n" + "\n".join([i[0] for i in sql(""" - select state_name from `tabState` where country=%s""", self.doc.country)]) - def validate(self): if self.doc.email_id and not validate_email_add(self.doc.email_id): msgprint("Please enter valid Email Id", raise_exception=1)