From a40c60ea3e005bf74438621349376e4f4b3bcb7f Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 11 Jun 2013 10:43:00 +0530 Subject: [PATCH] [cleanup] removed Trash Control, SMS Receiver, Profile Control, GL Mapper, GL Mapper Detail --- patches/february_2013/remove_gl_mapper.py | 7 +- utilities/doctype/gl_mapper/__init__.py | 1 - utilities/doctype/gl_mapper/gl_mapper.py | 22 --- utilities/doctype/gl_mapper/gl_mapper.txt | 73 -------- .../gl_mapper/locale/_messages_doc.json | 6 - .../doctype/gl_mapper/locale/ar-doc.json | 6 - .../doctype/gl_mapper/locale/de-doc.json | 6 - .../doctype/gl_mapper/locale/es-doc.json | 6 - .../doctype/gl_mapper/locale/fr-doc.json | 6 - .../doctype/gl_mapper/locale/hi-doc.json | 6 - .../doctype/gl_mapper/locale/hr-doc.json | 6 - .../doctype/gl_mapper/locale/nl-doc.json | 6 - .../doctype/gl_mapper/locale/pt-BR-doc.json | 6 - .../doctype/gl_mapper/locale/pt-doc.json | 6 - .../doctype/gl_mapper/locale/sr-doc.json | 6 - .../doctype/gl_mapper/locale/ta-doc.json | 6 - .../doctype/gl_mapper/locale/th-doc.json | 6 - .../doctype/gl_mapper_detail/__init__.py | 1 - .../gl_mapper_detail/gl_mapper_detail.py | 22 --- .../gl_mapper_detail/gl_mapper_detail.txt | 157 ------------------ .../locale/_messages_doc.json | 24 --- .../gl_mapper_detail/locale/ar-doc.json | 24 --- .../gl_mapper_detail/locale/de-doc.json | 24 --- .../gl_mapper_detail/locale/es-doc.json | 24 --- .../gl_mapper_detail/locale/fr-doc.json | 24 --- .../gl_mapper_detail/locale/hi-doc.json | 24 --- .../gl_mapper_detail/locale/hr-doc.json | 24 --- .../gl_mapper_detail/locale/nl-doc.json | 24 --- .../gl_mapper_detail/locale/pt-BR-doc.json | 24 --- .../gl_mapper_detail/locale/pt-doc.json | 24 --- .../gl_mapper_detail/locale/sr-doc.json | 24 --- .../gl_mapper_detail/locale/ta-doc.json | 24 --- .../gl_mapper_detail/locale/th-doc.json | 24 --- utilities/doctype/profile_control/__init__.py | 1 - .../profile_control/locale/_messages_doc.json | 4 - .../profile_control/locale/ar-doc.json | 4 - .../profile_control/locale/de-doc.json | 4 - .../profile_control/locale/es-doc.json | 4 - .../profile_control/locale/fr-doc.json | 4 - .../profile_control/locale/hi-doc.json | 4 - .../profile_control/locale/hr-doc.json | 4 - .../profile_control/locale/nl-doc.json | 4 - .../profile_control/locale/pt-BR-doc.json | 4 - .../profile_control/locale/pt-doc.json | 4 - .../profile_control/locale/sr-doc.json | 4 - .../profile_control/locale/ta-doc.json | 4 - .../profile_control/locale/th-doc.json | 4 - .../profile_control/profile_control.py | 67 -------- .../profile_control/profile_control.txt | 22 --- utilities/doctype/sms_receiver/__init__.py | 1 - .../sms_receiver/locale/_messages_doc.json | 7 - .../doctype/sms_receiver/locale/ar-doc.json | 7 - .../doctype/sms_receiver/locale/de-doc.json | 7 - .../doctype/sms_receiver/locale/es-doc.json | 7 - .../doctype/sms_receiver/locale/fr-doc.json | 7 - .../doctype/sms_receiver/locale/hi-doc.json | 7 - .../doctype/sms_receiver/locale/hr-doc.json | 7 - .../doctype/sms_receiver/locale/nl-doc.json | 7 - .../sms_receiver/locale/pt-BR-doc.json | 7 - .../doctype/sms_receiver/locale/pt-doc.json | 7 - .../doctype/sms_receiver/locale/sr-doc.json | 7 - .../doctype/sms_receiver/locale/ta-doc.json | 7 - .../doctype/sms_receiver/locale/th-doc.json | 7 - .../doctype/sms_receiver/sms_receiver.py | 22 --- .../doctype/sms_receiver/sms_receiver.txt | 52 ------ utilities/doctype/trash_control/__init__.py | 1 - .../trash_control/locale/_messages_doc.json | 4 - .../doctype/trash_control/locale/ar-doc.json | 4 - .../doctype/trash_control/locale/de-doc.json | 4 - .../doctype/trash_control/locale/es-doc.json | 4 - .../doctype/trash_control/locale/fr-doc.json | 4 - .../doctype/trash_control/locale/hi-doc.json | 4 - .../doctype/trash_control/locale/hr-doc.json | 4 - .../doctype/trash_control/locale/nl-doc.json | 4 - .../trash_control/locale/pt-BR-doc.json | 4 - .../doctype/trash_control/locale/pt-doc.json | 4 - .../doctype/trash_control/locale/sr-doc.json | 4 - .../doctype/trash_control/locale/ta-doc.json | 4 - .../doctype/trash_control/locale/th-doc.json | 4 - .../doctype/trash_control/trash_control.py | 68 -------- .../doctype/trash_control/trash_control.txt | 23 --- 81 files changed, 5 insertions(+), 1120 deletions(-) delete mode 100644 utilities/doctype/gl_mapper/__init__.py delete mode 100644 utilities/doctype/gl_mapper/gl_mapper.py delete mode 100644 utilities/doctype/gl_mapper/gl_mapper.txt delete mode 100644 utilities/doctype/gl_mapper/locale/_messages_doc.json delete mode 100644 utilities/doctype/gl_mapper/locale/ar-doc.json delete mode 100644 utilities/doctype/gl_mapper/locale/de-doc.json delete mode 100644 utilities/doctype/gl_mapper/locale/es-doc.json delete mode 100644 utilities/doctype/gl_mapper/locale/fr-doc.json delete mode 100644 utilities/doctype/gl_mapper/locale/hi-doc.json delete mode 100644 utilities/doctype/gl_mapper/locale/hr-doc.json delete mode 100644 utilities/doctype/gl_mapper/locale/nl-doc.json delete mode 100644 utilities/doctype/gl_mapper/locale/pt-BR-doc.json delete mode 100644 utilities/doctype/gl_mapper/locale/pt-doc.json delete mode 100644 utilities/doctype/gl_mapper/locale/sr-doc.json delete mode 100644 utilities/doctype/gl_mapper/locale/ta-doc.json delete mode 100644 utilities/doctype/gl_mapper/locale/th-doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/__init__.py delete mode 100644 utilities/doctype/gl_mapper_detail/gl_mapper_detail.py delete mode 100644 utilities/doctype/gl_mapper_detail/gl_mapper_detail.txt delete mode 100644 utilities/doctype/gl_mapper_detail/locale/_messages_doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/locale/ar-doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/locale/de-doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/locale/es-doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/locale/fr-doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/locale/hi-doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/locale/hr-doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/locale/nl-doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/locale/pt-BR-doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/locale/pt-doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/locale/sr-doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/locale/ta-doc.json delete mode 100644 utilities/doctype/gl_mapper_detail/locale/th-doc.json delete mode 100644 utilities/doctype/profile_control/__init__.py delete mode 100644 utilities/doctype/profile_control/locale/_messages_doc.json delete mode 100644 utilities/doctype/profile_control/locale/ar-doc.json delete mode 100644 utilities/doctype/profile_control/locale/de-doc.json delete mode 100644 utilities/doctype/profile_control/locale/es-doc.json delete mode 100644 utilities/doctype/profile_control/locale/fr-doc.json delete mode 100644 utilities/doctype/profile_control/locale/hi-doc.json delete mode 100644 utilities/doctype/profile_control/locale/hr-doc.json delete mode 100644 utilities/doctype/profile_control/locale/nl-doc.json delete mode 100644 utilities/doctype/profile_control/locale/pt-BR-doc.json delete mode 100644 utilities/doctype/profile_control/locale/pt-doc.json delete mode 100644 utilities/doctype/profile_control/locale/sr-doc.json delete mode 100644 utilities/doctype/profile_control/locale/ta-doc.json delete mode 100644 utilities/doctype/profile_control/locale/th-doc.json delete mode 100644 utilities/doctype/profile_control/profile_control.py delete mode 100644 utilities/doctype/profile_control/profile_control.txt delete mode 100644 utilities/doctype/sms_receiver/__init__.py delete mode 100644 utilities/doctype/sms_receiver/locale/_messages_doc.json delete mode 100644 utilities/doctype/sms_receiver/locale/ar-doc.json delete mode 100644 utilities/doctype/sms_receiver/locale/de-doc.json delete mode 100644 utilities/doctype/sms_receiver/locale/es-doc.json delete mode 100644 utilities/doctype/sms_receiver/locale/fr-doc.json delete mode 100644 utilities/doctype/sms_receiver/locale/hi-doc.json delete mode 100644 utilities/doctype/sms_receiver/locale/hr-doc.json delete mode 100644 utilities/doctype/sms_receiver/locale/nl-doc.json delete mode 100644 utilities/doctype/sms_receiver/locale/pt-BR-doc.json delete mode 100644 utilities/doctype/sms_receiver/locale/pt-doc.json delete mode 100644 utilities/doctype/sms_receiver/locale/sr-doc.json delete mode 100644 utilities/doctype/sms_receiver/locale/ta-doc.json delete mode 100644 utilities/doctype/sms_receiver/locale/th-doc.json delete mode 100644 utilities/doctype/sms_receiver/sms_receiver.py delete mode 100644 utilities/doctype/sms_receiver/sms_receiver.txt delete mode 100644 utilities/doctype/trash_control/__init__.py delete mode 100644 utilities/doctype/trash_control/locale/_messages_doc.json delete mode 100644 utilities/doctype/trash_control/locale/ar-doc.json delete mode 100644 utilities/doctype/trash_control/locale/de-doc.json delete mode 100644 utilities/doctype/trash_control/locale/es-doc.json delete mode 100644 utilities/doctype/trash_control/locale/fr-doc.json delete mode 100644 utilities/doctype/trash_control/locale/hi-doc.json delete mode 100644 utilities/doctype/trash_control/locale/hr-doc.json delete mode 100644 utilities/doctype/trash_control/locale/nl-doc.json delete mode 100644 utilities/doctype/trash_control/locale/pt-BR-doc.json delete mode 100644 utilities/doctype/trash_control/locale/pt-doc.json delete mode 100644 utilities/doctype/trash_control/locale/sr-doc.json delete mode 100644 utilities/doctype/trash_control/locale/ta-doc.json delete mode 100644 utilities/doctype/trash_control/locale/th-doc.json delete mode 100644 utilities/doctype/trash_control/trash_control.py delete mode 100644 utilities/doctype/trash_control/trash_control.txt diff --git a/patches/february_2013/remove_gl_mapper.py b/patches/february_2013/remove_gl_mapper.py index 7771104c92..7d248d3761 100644 --- a/patches/february_2013/remove_gl_mapper.py +++ b/patches/february_2013/remove_gl_mapper.py @@ -1,4 +1,7 @@ def execute(): import webnotes - for mapper in webnotes.conn.sql("""select name from `tabGL Mapper`"""): - webnotes.delete_doc("GL Mapper", mapper[0]) \ No newline at end of file + try: + for mapper in webnotes.conn.sql("""select name from `tabGL Mapper`"""): + webnotes.delete_doc("GL Mapper", mapper[0]) + except Exception, e: + pass \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/__init__.py b/utilities/doctype/gl_mapper/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/utilities/doctype/gl_mapper/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/utilities/doctype/gl_mapper/gl_mapper.py b/utilities/doctype/gl_mapper/gl_mapper.py deleted file mode 100644 index 7f48feb2eb..0000000000 --- a/utilities/doctype/gl_mapper/gl_mapper.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/utilities/doctype/gl_mapper/gl_mapper.txt b/utilities/doctype/gl_mapper/gl_mapper.txt deleted file mode 100644 index 2059186f15..0000000000 --- a/utilities/doctype/gl_mapper/gl_mapper.txt +++ /dev/null @@ -1,73 +0,0 @@ -[ - { - "creation": "2012-04-13 11:56:40", - "docstatus": 0, - "modified": "2012-04-23 12:27:38", - "modified_by": "Administrator", - "owner": "Administrator" - }, - { - "_last_update": "1305006361", - "autoname": "field:doc_type", - "doctype": "DocType", - "module": "Utilities", - "name": "__common__", - "section_style": "Simple", - "show_in_menu": 0, - "version": 1 - }, - { - "doctype": "DocField", - "name": "__common__", - "parent": "GL Mapper", - "parentfield": "fields", - "parenttype": "DocType", - "permlevel": 0 - }, - { - "create": 0, - "doctype": "DocPerm", - "name": "__common__", - "parent": "GL Mapper", - "parentfield": "permissions", - "parenttype": "DocType", - "permlevel": 0, - "read": 1, - "report": 1 - }, - { - "doctype": "DocType", - "name": "GL Mapper" - }, - { - "amend": 0, - "cancel": 0, - "doctype": "DocPerm", - "role": "Accounts User", - "submit": 0, - "write": 0 - }, - { - "doctype": "DocPerm", - "role": "System Manager", - "write": 1 - }, - { - "doctype": "DocField", - "fieldname": "doc_type", - "fieldtype": "Data", - "label": "Doc Type", - "oldfieldname": "doc_type", - "oldfieldtype": "Link", - "reqd": 1 - }, - { - "doctype": "DocField", - "fieldname": "fields", - "fieldtype": "Table", - "label": "Fields", - "oldfieldname": "fields", - "oldfieldtype": "Table", - "options": "GL Mapper Detail" - } -] \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/_messages_doc.json b/utilities/doctype/gl_mapper/locale/_messages_doc.json deleted file mode 100644 index 2a0596b3ef..0000000000 --- a/utilities/doctype/gl_mapper/locale/_messages_doc.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - "Fields", - "Utilities", - "Doc Type", - "GL Mapper" -] \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/ar-doc.json b/utilities/doctype/gl_mapper/locale/ar-doc.json deleted file mode 100644 index 0fec76ded8..0000000000 --- a/utilities/doctype/gl_mapper/locale/ar-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "\u0646\u0648\u0639 \u0627\u0644\u0648\u062b\u064a\u0642\u0629", - "Fields": "\u0627\u0644\u062d\u0642\u0648\u0644", - "GL Mapper": "GL \u0645\u062e\u0637\u0637", - "Utilities": "\u062e\u062f\u0645\u0627\u062a" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/de-doc.json b/utilities/doctype/gl_mapper/locale/de-doc.json deleted file mode 100644 index 509d4d263b..0000000000 --- a/utilities/doctype/gl_mapper/locale/de-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Doc Type", - "Fields": "Felder", - "GL Mapper": "GL Mapper", - "Utilities": "Dienstprogramme" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/es-doc.json b/utilities/doctype/gl_mapper/locale/es-doc.json deleted file mode 100644 index 91ab293e62..0000000000 --- a/utilities/doctype/gl_mapper/locale/es-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Tipo Doc.", - "Fields": "Campos", - "GL Mapper": "GL Mapper", - "Utilities": "Utilidades" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/fr-doc.json b/utilities/doctype/gl_mapper/locale/fr-doc.json deleted file mode 100644 index ffdc1fb0a0..0000000000 --- a/utilities/doctype/gl_mapper/locale/fr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Doc Type d'", - "Fields": "Champs", - "GL Mapper": "GL Mapper", - "Utilities": "Utilitaires" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/hi-doc.json b/utilities/doctype/gl_mapper/locale/hi-doc.json deleted file mode 100644 index 5569f7af78..0000000000 --- a/utilities/doctype/gl_mapper/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", - "Fields": "\u092b\u0940\u0932\u094d\u0921\u094d\u0938", - "GL Mapper": "\u091c\u0940\u090f\u0932 \u092a\u094d\u0930\u0924\u093f\u091a\u093f\u0924\u094d\u0930\u0923", - "Utilities": "\u0909\u092a\u092f\u094b\u0917\u093f\u0924\u093e\u090f\u0901" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/hr-doc.json b/utilities/doctype/gl_mapper/locale/hr-doc.json deleted file mode 100644 index 7c869cc14c..0000000000 --- a/utilities/doctype/gl_mapper/locale/hr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Doc Tip", - "Fields": "Polja", - "GL Mapper": "GL Mapper", - "Utilities": "Komunalne usluge" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/nl-doc.json b/utilities/doctype/gl_mapper/locale/nl-doc.json deleted file mode 100644 index 57d4d0f8cc..0000000000 --- a/utilities/doctype/gl_mapper/locale/nl-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Doc Type", - "Fields": "Velden", - "GL Mapper": "GL Mapper", - "Utilities": "Utilities" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/pt-BR-doc.json b/utilities/doctype/gl_mapper/locale/pt-BR-doc.json deleted file mode 100644 index 167ffa7388..0000000000 --- a/utilities/doctype/gl_mapper/locale/pt-BR-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Tipo do Documento", - "Fields": "Campos", - "GL Mapper": "Mapeamento GL", - "Utilities": "Utilit\u00e1rios" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/pt-doc.json b/utilities/doctype/gl_mapper/locale/pt-doc.json deleted file mode 100644 index d67609b62f..0000000000 --- a/utilities/doctype/gl_mapper/locale/pt-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Tipo Doc", - "Fields": "Campos", - "GL Mapper": "GL Mapper", - "Utilities": "Utilit\u00e1rios" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/sr-doc.json b/utilities/doctype/gl_mapper/locale/sr-doc.json deleted file mode 100644 index cc3589c86f..0000000000 --- a/utilities/doctype/gl_mapper/locale/sr-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "\u0414\u043e\u043a \u0422\u0438\u043f", - "Fields": "\u041f\u043e\u0459\u0430", - "GL Mapper": "\u0413\u041b \u041c\u0430\u043f\u043f\u0435\u0440", - "Utilities": "\u041a\u043e\u043c\u0443\u043d\u0430\u043b\u043d\u0435 \u0443\u0441\u043b\u0443\u0433\u0435" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/ta-doc.json b/utilities/doctype/gl_mapper/locale/ta-doc.json deleted file mode 100644 index a47c80c9df..0000000000 --- a/utilities/doctype/gl_mapper/locale/ta-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "Doc \u0bb5\u0b95\u0bc8", - "Fields": "\u0baa\u0bc1\u0bb2\u0b99\u0bcd\u0b95\u0bb3\u0bcd", - "GL Mapper": "\u0b9c\u0bc0 mapper", - "Utilities": "\u0baa\u0baf\u0ba9\u0bcd\u0baa\u0bbe\u0b9f\u0bc1\u0b95\u0bb3\u0bcd" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper/locale/th-doc.json b/utilities/doctype/gl_mapper/locale/th-doc.json deleted file mode 100644 index e1d81bb9a0..0000000000 --- a/utilities/doctype/gl_mapper/locale/th-doc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Doc Type": "\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17 Doc", - "Fields": "\u0e2a\u0e32\u0e02\u0e32", - "GL Mapper": "Mapper GL", - "Utilities": "\u0e22\u0e39\u0e17\u0e34\u0e25\u0e34\u0e15\u0e35\u0e49" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/__init__.py b/utilities/doctype/gl_mapper_detail/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/utilities/doctype/gl_mapper_detail/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/utilities/doctype/gl_mapper_detail/gl_mapper_detail.py b/utilities/doctype/gl_mapper_detail/gl_mapper_detail.py deleted file mode 100644 index 7f48feb2eb..0000000000 --- a/utilities/doctype/gl_mapper_detail/gl_mapper_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/utilities/doctype/gl_mapper_detail/gl_mapper_detail.txt b/utilities/doctype/gl_mapper_detail/gl_mapper_detail.txt deleted file mode 100644 index 079a4a1b83..0000000000 --- a/utilities/doctype/gl_mapper_detail/gl_mapper_detail.txt +++ /dev/null @@ -1,157 +0,0 @@ -[ - { - "creation": "2013-02-22 01:28:07", - "docstatus": 0, - "modified": "2013-03-07 07:03:21", - "modified_by": "Administrator", - "owner": "Administrator" - }, - { - "autoname": "GLMDetail.#####", - "doctype": "DocType", - "istable": 1, - "module": "Utilities", - "name": "__common__" - }, - { - "doctype": "DocField", - "fieldtype": "Data", - "name": "__common__", - "oldfieldtype": "Data", - "parent": "GL Mapper Detail", - "parentfield": "fields", - "parenttype": "DocType", - "permlevel": 0 - }, - { - "doctype": "DocType", - "name": "GL Mapper Detail" - }, - { - "doctype": "DocField", - "fieldname": "table_field", - "label": "Table Field", - "oldfieldname": "table_field" - }, - { - "doctype": "DocField", - "fieldname": "account", - "label": "Account", - "oldfieldname": "account", - "reqd": 1 - }, - { - "doctype": "DocField", - "fieldname": "debit", - "label": "Debit", - "oldfieldname": "debit", - "reqd": 1 - }, - { - "doctype": "DocField", - "fieldname": "credit", - "label": "Credit", - "oldfieldname": "credit", - "reqd": 1 - }, - { - "doctype": "DocField", - "fieldname": "cost_center", - "label": "Cost Center", - "oldfieldname": "cost_center", - "reqd": 0 - }, - { - "doctype": "DocField", - "fieldname": "against", - "label": "Against", - "oldfieldname": "against", - "reqd": 1 - }, - { - "doctype": "DocField", - "fieldname": "remarks", - "label": "Remarks", - "no_copy": 1, - "oldfieldname": "remarks", - "reqd": 1 - }, - { - "doctype": "DocField", - "fieldname": "voucher_type", - "label": "Voucher Type", - "oldfieldname": "voucher_type", - "reqd": 1 - }, - { - "doctype": "DocField", - "fieldname": "voucher_no", - "label": "Voucher No", - "oldfieldname": "voucher_no", - "reqd": 1 - }, - { - "description": "The date at which current entry will get or has actually executed.", - "doctype": "DocField", - "fieldname": "posting_date", - "label": "Posting Date", - "oldfieldname": "posting_date", - "reqd": 1 - }, - { - "description": "The date at which current entry is made in system.", - "doctype": "DocField", - "fieldname": "transaction_date", - "label": "Transaction Date", - "oldfieldname": "transaction_date", - "reqd": 1 - }, - { - "doctype": "DocField", - "fieldname": "aging_date", - "label": "Aging Date", - "oldfieldname": "aging_date", - "reqd": 1 - }, - { - "doctype": "DocField", - "fieldname": "fiscal_year", - "in_filter": 1, - "label": "Fiscal Year", - "oldfieldname": "fiscal_year", - "reqd": 1, - "search_index": 0 - }, - { - "doctype": "DocField", - "fieldname": "against_voucher", - "label": "Against Voucher", - "oldfieldname": "against_voucher" - }, - { - "doctype": "DocField", - "fieldname": "against_voucher_type", - "label": "Against Voucher Type", - "oldfieldname": "against_voucher_type" - }, - { - "doctype": "DocField", - "fieldname": "company", - "in_filter": 1, - "label": "Company", - "oldfieldname": "company", - "search_index": 0 - }, - { - "doctype": "DocField", - "fieldname": "is_opening", - "label": "Is Opening", - "oldfieldname": "is_opening" - }, - { - "doctype": "DocField", - "fieldname": "is_advance", - "label": "Is Advance", - "oldfieldname": "is_advance" - } -] \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/_messages_doc.json b/utilities/doctype/gl_mapper_detail/locale/_messages_doc.json deleted file mode 100644 index d3d4b62497..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/_messages_doc.json +++ /dev/null @@ -1,24 +0,0 @@ -[ - "Against Voucher", - "Against Voucher Type", - "Cost Center", - "Debit", - "Company", - "Utilities", - "Remarks", - "Posting Date", - "Account", - "Voucher Type", - "Against", - "Credit", - "Fiscal Year", - "Is Advance", - "Table Field", - "Voucher No", - "Is Opening", - "The date at which current entry is made in system.", - "Transaction Date", - "GL Mapper Detail", - "The date at which current entry will get or has actually executed.", - "Aging Date" -] \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/ar-doc.json b/utilities/doctype/gl_mapper_detail/locale/ar-doc.json deleted file mode 100644 index 2a3fd9a97f..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/ar-doc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Account": "\u062d\u0633\u0627\u0628", - "Against": "\u0636\u062f", - "Against Voucher": "\u0636\u062f \u0642\u0633\u064a\u0645\u0629", - "Against Voucher Type": "\u0636\u062f \u0646\u0648\u0639 \u0642\u0633\u064a\u0645\u0629", - "Aging Date": "\u0627\u0644\u0634\u064a\u062e\u0648\u062e\u0629 \u062a\u0627\u0631\u064a\u062e", - "Company": "\u0634\u0631\u0643\u0629", - "Cost Center": "\u0645\u0631\u0643\u0632 \u0627\u0644\u062a\u0643\u0644\u0641\u0629", - "Credit": "\u0627\u0626\u062a\u0645\u0627\u0646", - "Debit": "\u0645\u062f\u064a\u0646", - "Fiscal Year": "\u0627\u0644\u0633\u0646\u0629 \u0627\u0644\u0645\u0627\u0644\u064a\u0629", - "GL Mapper Detail": "GL \u0645\u062e\u0637\u0637 \u062a\u0641\u0635\u064a\u0644\u064a", - "Is Advance": "\u0647\u0648 \u0627\u0644\u0645\u0642\u062f\u0645\u0629", - "Is Opening": "\u0648\u0641\u062a\u062d", - "Posting Date": "\u062a\u0627\u0631\u064a\u062e \u0627\u0644\u0646\u0634\u0631", - "Remarks": "\u062a\u0635\u0631\u064a\u062d\u0627\u062a", - "Table Field": "\u0627\u0644\u062c\u062f\u0648\u0644 \u0627\u0644\u0645\u064a\u062f\u0627\u0646\u064a\u0629", - "The date at which current entry is made in system.": "\u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0627\u0644\u0630\u064a \u064a\u062a\u0645 \u0627\u062f\u062e\u0627\u0644\u0647\u0627 \u0641\u064a \u0627\u0644\u0646\u0638\u0627\u0645 \u0627\u0644\u062d\u0627\u0644\u064a.", - "The date at which current entry will get or has actually executed.": "\u0646\u0641\u0630\u062a \u0641\u0639\u0644\u064a\u0627 \u0627\u0644\u062a\u0627\u0631\u064a\u062e \u0627\u0644\u0630\u064a \u0633\u0648\u0641 \u062a\u062d\u0635\u0644 \u0627\u0644\u0645\u062f\u062e\u0644 \u0627\u0644\u062d\u0627\u0644\u064a \u0623\u0648.", - "Transaction Date": "\u062a\u0627\u0631\u064a\u062e \u0627\u0644\u0645\u0639\u0627\u0645\u0644\u0629", - "Utilities": "\u062e\u062f\u0645\u0627\u062a", - "Voucher No": "\u0644\u0627 \u0642\u0633\u064a\u0645\u0629", - "Voucher Type": "\u0642\u0633\u064a\u0645\u0629 \u0646\u0648\u0639" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/de-doc.json b/utilities/doctype/gl_mapper_detail/locale/de-doc.json deleted file mode 100644 index de6136d5f6..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/de-doc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Account": "Konto", - "Against": "Gegen", - "Against Voucher": "Gegen Gutschein", - "Against Voucher Type": "Gegen Gutschein Type", - "Aging Date": "Aging Datum", - "Company": "Firma", - "Cost Center": "Kostenstellenrechnung", - "Credit": "Kredit", - "Debit": "Soll", - "Fiscal Year": "Gesch\u00e4ftsjahr", - "GL Mapper Detail": "GL Mapper Details", - "Is Advance": "Ist Advance", - "Is Opening": "Er\u00f6ffnet", - "Posting Date": "Buchungsdatum", - "Remarks": "Bemerkungen", - "Table Field": "Tabelle Feld", - "The date at which current entry is made in system.": "Das Datum, an dem aktuellen Eintrag im System hergestellt wird.", - "The date at which current entry will get or has actually executed.": "Das Datum, an dem aktuellen Eintrag zu erhalten oder wird tats\u00e4chlich ausgef\u00fchrt.", - "Transaction Date": "Transaction Datum", - "Utilities": "Dienstprogramme", - "Voucher No": "Gutschein Nein", - "Voucher Type": "Gutschein Type" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/es-doc.json b/utilities/doctype/gl_mapper_detail/locale/es-doc.json deleted file mode 100644 index 1a3b32a3c1..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/es-doc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Account": "Cuenta", - "Against": "Contra", - "Against Voucher": "Contra Voucher", - "Against Voucher Type": "Contra el tipo de comprobante", - "Aging Date": "Fecha de antig\u00fcedad", - "Company": "Empresa", - "Cost Center": "De centros de coste", - "Credit": "Cr\u00e9dito", - "Debit": "D\u00e9bito", - "Fiscal Year": "A\u00f1o Fiscal", - "GL Mapper Detail": "GL Detalle Mapper", - "Is Advance": "Es anticipado", - "Is Opening": "Est\u00e1 Abriendo", - "Posting Date": "Fecha de Publicaci\u00f3n", - "Remarks": "Observaciones", - "Table Field": "Tabla de campo", - "The date at which current entry is made in system.": "La fecha en que se efect\u00fae la entrada actual en el sistema.", - "The date at which current entry will get or has actually executed.": "La fecha en la que la entrada actual se consigue o se ejecuta realmente.", - "Transaction Date": "Fecha de Transacci\u00f3n", - "Utilities": "Utilidades", - "Voucher No": "Vale No", - "Voucher Type": "Vale Tipo" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/fr-doc.json b/utilities/doctype/gl_mapper_detail/locale/fr-doc.json deleted file mode 100644 index dc9124689f..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/fr-doc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Account": "Compte", - "Against": "Contre", - "Against Voucher": "Bon contre", - "Against Voucher Type": "Contre Type de Bon", - "Aging Date": "Vieillissement Date", - "Company": "Entreprise", - "Cost Center": "Centre de co\u00fbts", - "Credit": "Cr\u00e9dit", - "Debit": "D\u00e9bit", - "Fiscal Year": "Exercice", - "GL Mapper Detail": "D\u00e9tail Mapper GL", - "Is Advance": "Est-Advance", - "Is Opening": "Est l'ouverture", - "Posting Date": "Date de publication", - "Remarks": "Remarques", - "Table Field": "De champs de tableau", - "The date at which current entry is made in system.": "La date \u00e0 laquelle l'entr\u00e9e courante est faite dans le syst\u00e8me.", - "The date at which current entry will get or has actually executed.": "La date \u00e0 laquelle l'entr\u00e9e actuelle permet de lire ou a r\u00e9ellement ex\u00e9cut\u00e9.", - "Transaction Date": "Date de la transaction", - "Utilities": "Utilitaires", - "Voucher No": "Bon Pas", - "Voucher Type": "Type de Bon" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/hi-doc.json b/utilities/doctype/gl_mapper_detail/locale/hi-doc.json deleted file mode 100644 index faa4e4044c..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/hi-doc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Account": "\u0916\u093e\u0924\u093e", - "Against": "\u0915\u0947 \u0916\u093f\u0932\u093e\u092b", - "Against Voucher": "\u0935\u093e\u0909\u091a\u0930 \u0915\u0947 \u0916\u093f\u0932\u093e\u092b", - "Against Voucher Type": "\u0935\u093e\u0909\u091a\u0930 \u092a\u094d\u0930\u0915\u093e\u0930 \u0915\u0947 \u0916\u093f\u0932\u093e\u092b", - "Aging Date": "\u0924\u093f\u0925\u093f \u090f\u091c\u093f\u0902\u0917", - "Company": "\u0915\u0902\u092a\u0928\u0940", - "Cost Center": "\u0932\u093e\u0917\u0924 \u0915\u0947\u0902\u0926\u094d\u0930", - "Credit": "\u0936\u094d\u0930\u0947\u092f", - "Debit": "\u0928\u093e\u092e\u0947", - "Fiscal Year": "\u0935\u093f\u0924\u094d\u0924\u0940\u092f \u0935\u0930\u094d\u0937", - "GL Mapper Detail": "\u091c\u0940\u090f\u0932 \u092a\u094d\u0930\u0924\u093f\u091a\u093f\u0924\u094d\u0930\u0923 \u0935\u093f\u0938\u094d\u0924\u093e\u0930", - "Is Advance": "\u0905\u0917\u094d\u0930\u093f\u092e \u0939\u0948", - "Is Opening": "\u0939\u0948 \u0916\u094b\u0932\u0928\u0947", - "Posting Date": "\u0924\u093f\u0925\u093f \u092a\u094b\u0938\u094d\u091f\u093f\u0902\u0917", - "Remarks": "\u091f\u093f\u092a\u094d\u092a\u0923\u093f\u092f\u093e\u0901", - "Table Field": "\u091f\u0947\u092c\u0932 \u092b\u0940\u0932\u094d\u0921", - "The date at which current entry is made in system.": "\u0924\u093e\u0930\u0940\u0916, \u091c\u093f\u0938 \u092a\u0930 \u0935\u0930\u094d\u0924\u092e\u093e\u0928 \u092a\u094d\u0930\u0935\u093f\u0937\u094d\u091f\u093f \u092a\u094d\u0930\u0923\u093e\u0932\u0940 \u092e\u0947\u0902 \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e \u0939\u0948.", - "The date at which current entry will get or has actually executed.": "\u0924\u093e\u0930\u0940\u0916, \u091c\u093f\u0938 \u092a\u0930 \u0935\u0930\u094d\u0924\u092e\u093e\u0928 \u092a\u094d\u0930\u0935\u093f\u0937\u094d\u091f\u093f \u092a\u093e\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u092f\u093e \u0935\u093e\u0938\u094d\u0924\u0935 \u092e\u0947\u0902 \u092e\u093e\u0930 \u0921\u093e\u0932\u093e \u0917\u092f\u093e \u0939\u0948.", - "Transaction Date": "\u0932\u0947\u0928\u0926\u0947\u0928 \u0915\u0940 \u0924\u093e\u0930\u0940\u0916", - "Utilities": "\u0909\u092a\u092f\u094b\u0917\u093f\u0924\u093e\u090f\u0901", - "Voucher No": "\u0915\u094b\u0908 \u0935\u093e\u0909\u091a\u0930", - "Voucher Type": "\u0935\u093e\u0909\u091a\u0930 \u092a\u094d\u0930\u0915\u093e\u0930" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/hr-doc.json b/utilities/doctype/gl_mapper_detail/locale/hr-doc.json deleted file mode 100644 index cdc6d07077..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/hr-doc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Account": "Ra\u010dun", - "Against": "Protiv", - "Against Voucher": "Protiv Voucheru", - "Against Voucher Type": "Protiv voucher vrsti", - "Aging Date": "Starenje Datum", - "Company": "Dru\u0161tvo", - "Cost Center": "Tro\u0161ka", - "Credit": "Kredit", - "Debit": "Zadu\u017eenje", - "Fiscal Year": "Fiskalna godina", - "GL Mapper Detail": "GL Mapper Detalj", - "Is Advance": "Je Predujam", - "Is Opening": "Je Otvaranje", - "Posting Date": "Objavljivanje Datum", - "Remarks": "Primjedbe", - "Table Field": "Tablica Polje", - "The date at which current entry is made in system.": "Datum na koji teku\u0107i zapis se sastoji u sustavu.", - "The date at which current entry will get or has actually executed.": "Datum na koji teku\u0107i zapis \u0107e dobiti ili zapravo je pogubljen.", - "Transaction Date": "Transakcija Datum", - "Utilities": "Komunalne usluge", - "Voucher No": "Bon Ne", - "Voucher Type": "Bon Tip" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/nl-doc.json b/utilities/doctype/gl_mapper_detail/locale/nl-doc.json deleted file mode 100644 index fd7f35363c..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/nl-doc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Account": "Rekening", - "Against": "Tegen", - "Against Voucher": "Tegen Voucher", - "Against Voucher Type": "Tegen Voucher Type", - "Aging Date": "Aging Datum", - "Company": "Vennootschap", - "Cost Center": "Kostenplaats", - "Credit": "Krediet", - "Debit": "Debet", - "Fiscal Year": "Boekjaar", - "GL Mapper Detail": "GL Mapper Detail", - "Is Advance": "Is Advance", - "Is Opening": "Is openen", - "Posting Date": "Plaatsingsdatum", - "Remarks": "Opmerkingen", - "Table Field": "Tabel Veld", - "The date at which current entry is made in system.": "De datum waarop huidige item wordt gemaakt in het systeem.", - "The date at which current entry will get or has actually executed.": "De datum waarop huidige item krijgt of heeft daadwerkelijk zijn uitgevoerd.", - "Transaction Date": "Transactie Datum", - "Utilities": "Utilities", - "Voucher No": "Blad nr.", - "Voucher Type": "Voucher Type" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/pt-BR-doc.json b/utilities/doctype/gl_mapper_detail/locale/pt-BR-doc.json deleted file mode 100644 index 63b65f3c0e..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/pt-BR-doc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Account": "Conta", - "Against": "Contra", - "Against Voucher": "Contra Comprovante", - "Against Voucher Type": "Contra Tipo de Comprovante", - "Aging Date": "Data de Envelhecimento", - "Company": "Empresa", - "Cost Center": "Centro de Custos", - "Credit": "Cr\u00e9dito", - "Debit": "D\u00e9bito", - "Fiscal Year": "Exerc\u00edcio fiscal", - "GL Mapper Detail": "Detalhe do Mapeamento GL", - "Is Advance": "\u00c9 antecipado", - "Is Opening": "\u00c9 abertura", - "Posting Date": "Data da Postagem", - "Remarks": "Observa\u00e7\u00f5es", - "Table Field": "Campo da Tabela", - "The date at which current entry is made in system.": "A data em que o lan\u00e7amento atual \u00e9 feito no sistema.", - "The date at which current entry will get or has actually executed.": "A data em que o lan\u00e7amento atual vai ser ou foi realmente executado.", - "Transaction Date": "Data da Transa\u00e7\u00e3o", - "Utilities": "Utilit\u00e1rios", - "Voucher No": "N\u00ba do comprovante", - "Voucher Type": "Tipo de comprovante" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/pt-doc.json b/utilities/doctype/gl_mapper_detail/locale/pt-doc.json deleted file mode 100644 index 3bef987328..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/pt-doc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Account": "Conta", - "Against": "Contra", - "Against Voucher": "Contra Vale", - "Against Voucher Type": "Tipo contra Vale", - "Aging Date": "Envelhecimento Data", - "Company": "Companhia", - "Cost Center": "Centro de Custos", - "Credit": "Cr\u00e9dito", - "Debit": "D\u00e9bito", - "Fiscal Year": "Exerc\u00edcio fiscal", - "GL Mapper Detail": "GL Detalhe Mapper", - "Is Advance": "\u00c9 o avan\u00e7o", - "Is Opening": "Est\u00e1 abrindo", - "Posting Date": "Data da Publica\u00e7\u00e3o", - "Remarks": "Observa\u00e7\u00f5es", - "Table Field": "Campos da Tabela", - "The date at which current entry is made in system.": "A data em que a entrada actual \u00e9 feita no sistema.", - "The date at which current entry will get or has actually executed.": "A data em que a entrada de corrente vai ter ou tem realmente executado.", - "Transaction Date": "Data Transa\u00e7\u00e3o", - "Utilities": "Utilit\u00e1rios", - "Voucher No": "N\u00e3o vale", - "Voucher Type": "Tipo comprovante" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/sr-doc.json b/utilities/doctype/gl_mapper_detail/locale/sr-doc.json deleted file mode 100644 index aad8d87a09..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/sr-doc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Account": "\u0420\u0430\u0447\u0443\u043d", - "Against": "\u041f\u0440\u043e\u0442\u0438\u0432", - "Against Voucher": "\u041f\u0440\u043e\u0442\u0438\u0432 \u0432\u0430\u0443\u0447\u0435\u0440", - "Against Voucher Type": "\u041f\u0440\u043e\u0442\u0438\u0432 \u0412\u0430\u0443\u0446\u0435\u0440 \u0422\u0438\u043f\u0435", - "Aging Date": "\u0421\u0442\u0430\u0440\u0435\u045a\u0435 \u0414\u0430\u0442\u0435", - "Company": "\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u0458\u0430", - "Cost Center": "\u0422\u0440\u043e\u0448\u043a\u043e\u0432\u0438 \u0446\u0435\u043d\u0442\u0430\u0440", - "Credit": "\u041a\u0440\u0435\u0434\u0438\u0442", - "Debit": "\u0417\u0430\u0434\u0443\u0436\u0435\u045a\u0435", - "Fiscal Year": "\u0424\u0438\u0441\u043a\u0430\u043b\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430", - "GL Mapper Detail": "\u0413\u041b \u041c\u0430\u043f\u043f\u0435\u0440 \u0414\u0435\u0442\u0430\u0459", - "Is Advance": "\u0414\u0430 \u043b\u0438 \u0410\u0434\u0432\u0430\u043d\u0446\u0435", - "Is Opening": "\u0414\u0430 \u043b\u0438 \u041e\u0442\u0432\u0430\u0440\u0430\u045a\u0435", - "Posting Date": "\u041f\u043e\u0441\u0442\u0430\u0432\u0459\u0430\u045a\u0435 \u0414\u0430\u0442\u0435", - "Remarks": "\u041f\u0440\u0438\u043c\u0435\u0434\u0431\u0435", - "Table Field": "\u0422\u0430\u0431\u0435\u043b\u0430 \u041f\u043e\u0459\u0435", - "The date at which current entry is made in system.": "\u0414\u0430\u0442\u0443\u043c \u043d\u0430 \u043a\u043e\u0458\u0438 \u0458\u0435 \u0442\u0440\u0435\u043d\u0443\u0442\u043d\u0438 \u0443\u043d\u043e\u0441 \u043d\u0430\u043f\u0440\u0430\u0432\u0459\u0435\u043d \u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443.", - "The date at which current entry will get or has actually executed.": "\u0414\u0430\u0442\u0443\u043c \u043d\u0430 \u043a\u043e\u0458\u0438 \u0442\u0440\u0435\u043d\u0443\u0442\u043d\u0430 \u0441\u0442\u0430\u0432\u043a\u0430 \u045b\u0435 \u0434\u043e\u0431\u0438\u0442\u0438 \u0438\u043b\u0438 \u0458\u0435 \u0441\u0442\u0432\u0430\u0440\u043d\u043e \u0438\u0437\u0432\u0440\u0448\u0435\u043d\u0430.", - "Transaction Date": "\u0422\u0440\u0430\u043d\u0441\u0430\u043a\u0446\u0438\u0458\u0430 \u0414\u0430\u0442\u0443\u043c", - "Utilities": "\u041a\u043e\u043c\u0443\u043d\u0430\u043b\u043d\u0435 \u0443\u0441\u043b\u0443\u0433\u0435", - "Voucher No": "\u0412\u0430\u0443\u0447\u0435\u0440 \u041d\u0435\u043c\u0430", - "Voucher Type": "\u0412\u0430\u0443\u0447\u0435\u0440 \u0422\u0438\u043f" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/ta-doc.json b/utilities/doctype/gl_mapper_detail/locale/ta-doc.json deleted file mode 100644 index 23f1796a7e..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/ta-doc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Account": "\u0b95\u0ba3\u0b95\u0bcd\u0b95\u0bc1", - "Against": "\u0b8e\u0ba4\u0bbf\u0bb0\u0bbe\u0b95", - "Against Voucher": "\u0bb5\u0bb5\u0bc1\u0b9a\u0bcd\u0b9a\u0bb0\u0bcd \u0b8e\u0ba4\u0bbf\u0bb0\u0bbe\u0b95", - "Against Voucher Type": "\u0bb5\u0bb5\u0bc1\u0b9a\u0bcd\u0b9a\u0bb0\u0bcd \u0bb5\u0b95\u0bc8 \u0b8e\u0ba4\u0bbf\u0bb0\u0bbe\u0b95", - "Aging Date": "\u0ba4\u0bc7\u0ba4\u0bbf \u0bb5\u0baf\u0ba4\u0bbe\u0ba9", - "Company": "\u0ba8\u0bbf\u0bb1\u0bc1\u0bb5\u0ba9\u0bae\u0bcd", - "Cost Center": "\u0b9a\u0bc6\u0bb2\u0bb5\u0bc1 \u0bae\u0bc8\u0baf\u0bae\u0bcd", - "Credit": "\u0b95\u0b9f\u0ba9\u0bcd", - "Debit": "\u0baa\u0bb1\u0bcd\u0bb1\u0bc1", - "Fiscal Year": "\u0ba8\u0bbf\u0ba4\u0bbf\u0baf\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1", - "GL Mapper Detail": "\u0b9c\u0bc0 mapper \u0bb5\u0bbf\u0bb0\u0bbf\u0bb5\u0bbe\u0b95", - "Is Advance": "\u0bae\u0bc1\u0ba9\u0bcd\u0baa\u0ba3\u0bae\u0bcd", - "Is Opening": "\u0ba4\u0bbf\u0bb1\u0b95\u0bcd\u0b95\u0bbf\u0bb1\u0ba4\u0bc1", - "Posting Date": "\u0ba4\u0bc7\u0ba4\u0bbf \u0ba4\u0b95\u0bb5\u0bb2\u0bcd\u0b95\u0bb3\u0bc1\u0b95\u0bcd\u0b95\u0bc1", - "Remarks": "\u0b95\u0bb0\u0bc1\u0ba4\u0bcd\u0ba4\u0bc1\u0b95\u0bcd\u0b95\u0bb3\u0bcd", - "Table Field": "\u0b85\u0b9f\u0bcd\u0b9f\u0bb5\u0ba3\u0bc8 \u0baa\u0bc1\u0bb2\u0bae\u0bcd", - "The date at which current entry is made in system.": "\u0ba4\u0bb1\u0bcd\u0baa\u0bc7\u0bbe\u0ba4\u0bc8\u0baf \u0b89\u0bb3\u0bcd\u0bb3\u0bc0\u0b9f\u0bc1 \u0b85\u0bae\u0bc8\u0baa\u0bcd\u0baa\u0bc1 \u0b89\u0bb0\u0bc1\u0bb5\u0bbe\u0b95\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0b9f\u0bc1\u0bae\u0bcd \u0ba4\u0bc7\u0ba4\u0bbf.", - "The date at which current entry will get or has actually executed.": "\u0ba4\u0bb1\u0bcd\u0baa\u0bc7\u0bbe\u0ba4\u0bc8\u0baf \u0b89\u0bb3\u0bcd\u0bb3\u0bc0\u0b9f\u0bc1 \u0b85\u0bb2\u0bcd\u0bb2\u0ba4\u0bc1 \u0b8e\u0ba8\u0bcd\u0ba4 \u0ba4\u0bc7\u0ba4\u0bbf \u0b89\u0ba3\u0bcd\u0bae\u0bc8\u0baf\u0bbf\u0bb2\u0bcd \u0ba4\u0bc2\u0b95\u0bcd\u0b95\u0bbf\u0bb2\u0bbf\u0b9f\u0baa\u0bcd\u0baa\u0b9f\u0bcd\u0b9f\u0bbe\u0bb0\u0bcd.", - "Transaction Date": "\u0baa\u0bb0\u0bbf\u0bb5\u0bb0\u0bcd\u0ba4\u0bcd\u0ba4\u0ba9\u0bc8 \u0ba4\u0bc7\u0ba4\u0bbf", - "Utilities": "\u0baa\u0baf\u0ba9\u0bcd\u0baa\u0bbe\u0b9f\u0bc1\u0b95\u0bb3\u0bcd", - "Voucher No": "\u0bb0\u0b9a\u0bc0\u0ba4\u0bc1 \u0b87\u0bb2\u0bcd\u0bb2\u0bc8", - "Voucher Type": "\u0bb0\u0b9a\u0bc0\u0ba4\u0bc1 \u0bb5\u0b95\u0bc8" -} \ No newline at end of file diff --git a/utilities/doctype/gl_mapper_detail/locale/th-doc.json b/utilities/doctype/gl_mapper_detail/locale/th-doc.json deleted file mode 100644 index 6f39208d61..0000000000 --- a/utilities/doctype/gl_mapper_detail/locale/th-doc.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "Account": "\u0e1a\u0e31\u0e0d\u0e0a\u0e35", - "Against": "\u0e01\u0e31\u0e1a", - "Against Voucher": "\u0e01\u0e31\u0e1a\u0e1a\u0e31\u0e15\u0e23\u0e01\u0e33\u0e19\u0e31\u0e25", - "Against Voucher Type": "\u0e01\u0e31\u0e1a\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e1a\u0e31\u0e15\u0e23", - "Aging Date": "Aging \u0e27\u0e31\u0e19\u0e17\u0e35\u0e48", - "Company": "\u0e1a\u0e23\u0e34\u0e29\u0e31\u0e17", - "Cost Center": "\u0e28\u0e39\u0e19\u0e22\u0e4c\u0e15\u0e49\u0e19\u0e17\u0e38\u0e19", - "Credit": "\u0e40\u0e04\u0e23\u0e14\u0e34\u0e15", - "Debit": "\u0e2b\u0e31\u0e01\u0e1a\u0e31\u0e0d\u0e0a\u0e35", - "Fiscal Year": "\u0e1b\u0e35\u0e07\u0e1a\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13", - "GL Mapper Detail": "\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14 Mapper GL", - "Is Advance": "\u0e25\u0e48\u0e27\u0e07\u0e2b\u0e19\u0e49\u0e32", - "Is Opening": "\u0e04\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e34\u0e14", - "Posting Date": "\u0e42\u0e1e\u0e2a\u0e15\u0e4c\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48", - "Remarks": "\u0e02\u0e49\u0e2d\u0e04\u0e34\u0e14\u0e40\u0e2b\u0e47\u0e19", - "Table Field": "\u0e40\u0e02\u0e15\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e15\u0e32\u0e23\u0e32\u0e07", - "The date at which current entry is made in system.": "\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48\u0e17\u0e35\u0e48\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19\u0e08\u0e30\u0e17\u0e33\u0e43\u0e19\u0e23\u0e30\u0e1a\u0e1a", - "The date at which current entry will get or has actually executed.": "\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48\u0e17\u0e35\u0e48\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19\u0e08\u0e30\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e14\u0e49\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e08\u0e23\u0e34\u0e07", - "Transaction Date": "\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48\u0e17\u0e33\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23", - "Utilities": "\u0e22\u0e39\u0e17\u0e34\u0e25\u0e34\u0e15\u0e35\u0e49", - "Voucher No": "\u0e1a\u0e31\u0e15\u0e23\u0e01\u0e33\u0e19\u0e31\u0e25\u0e44\u0e21\u0e48\u0e21\u0e35", - "Voucher Type": "\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e1a\u0e31\u0e15\u0e23\u0e01\u0e33\u0e19\u0e31\u0e25" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/__init__.py b/utilities/doctype/profile_control/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/utilities/doctype/profile_control/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/utilities/doctype/profile_control/locale/_messages_doc.json b/utilities/doctype/profile_control/locale/_messages_doc.json deleted file mode 100644 index e0d0206a38..0000000000 --- a/utilities/doctype/profile_control/locale/_messages_doc.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - "Utilities", - "Profile Control" -] \ No newline at end of file diff --git a/utilities/doctype/profile_control/locale/ar-doc.json b/utilities/doctype/profile_control/locale/ar-doc.json deleted file mode 100644 index 534e9a6d18..0000000000 --- a/utilities/doctype/profile_control/locale/ar-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Profile Control": "\u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a \u0627\u0644\u062a\u062d\u0643\u0645", - "Utilities": "\u062e\u062f\u0645\u0627\u062a" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/locale/de-doc.json b/utilities/doctype/profile_control/locale/de-doc.json deleted file mode 100644 index b5c3bc11fa..0000000000 --- a/utilities/doctype/profile_control/locale/de-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Profile Control": "Profile Control", - "Utilities": "Dienstprogramme" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/locale/es-doc.json b/utilities/doctype/profile_control/locale/es-doc.json deleted file mode 100644 index 531fe5d077..0000000000 --- a/utilities/doctype/profile_control/locale/es-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Profile Control": "Perfil de control", - "Utilities": "Utilidades" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/locale/fr-doc.json b/utilities/doctype/profile_control/locale/fr-doc.json deleted file mode 100644 index e2945109a4..0000000000 --- a/utilities/doctype/profile_control/locale/fr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Profile Control": "Contr\u00f4le profil", - "Utilities": "Utilitaires" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/locale/hi-doc.json b/utilities/doctype/profile_control/locale/hi-doc.json deleted file mode 100644 index 8d4a388557..0000000000 --- a/utilities/doctype/profile_control/locale/hi-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Profile Control": "\u092a\u094d\u0930\u094b\u092b\u093c\u093e\u0907\u0932 \u0928\u093f\u092f\u0902\u0924\u094d\u0930\u0923", - "Utilities": "\u0909\u092a\u092f\u094b\u0917\u093f\u0924\u093e\u090f\u0901" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/locale/hr-doc.json b/utilities/doctype/profile_control/locale/hr-doc.json deleted file mode 100644 index 98df106326..0000000000 --- a/utilities/doctype/profile_control/locale/hr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Profile Control": "Profil kontrola", - "Utilities": "Komunalne usluge" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/locale/nl-doc.json b/utilities/doctype/profile_control/locale/nl-doc.json deleted file mode 100644 index 7d857d6c5b..0000000000 --- a/utilities/doctype/profile_control/locale/nl-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Profile Control": "Profiel Controle", - "Utilities": "Utilities" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/locale/pt-BR-doc.json b/utilities/doctype/profile_control/locale/pt-BR-doc.json deleted file mode 100644 index bf95a3a89f..0000000000 --- a/utilities/doctype/profile_control/locale/pt-BR-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Profile Control": "Controle de Perfil", - "Utilities": "Utilit\u00e1rios" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/locale/pt-doc.json b/utilities/doctype/profile_control/locale/pt-doc.json deleted file mode 100644 index 3f2a2d51df..0000000000 --- a/utilities/doctype/profile_control/locale/pt-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Profile Control": "Controlo de perfil", - "Utilities": "Utilit\u00e1rios" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/locale/sr-doc.json b/utilities/doctype/profile_control/locale/sr-doc.json deleted file mode 100644 index 6bd05ae664..0000000000 --- a/utilities/doctype/profile_control/locale/sr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Profile Control": "\u041f\u0440\u043e\u0444\u0438\u043b \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0430", - "Utilities": "\u041a\u043e\u043c\u0443\u043d\u0430\u043b\u043d\u0435 \u0443\u0441\u043b\u0443\u0433\u0435" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/locale/ta-doc.json b/utilities/doctype/profile_control/locale/ta-doc.json deleted file mode 100644 index 8b3c207e55..0000000000 --- a/utilities/doctype/profile_control/locale/ta-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Profile Control": "\u0b9a\u0bc1\u0baf\u0bb5\u0bbf\u0bb5\u0bb0\u0ba4\u0bcd\u0ba4\u0bc8 \u0b95\u0b9f\u0bcd\u0b9f\u0bc1\u0baa\u0bcd\u0baa\u0bbe\u0b9f\u0bc1", - "Utilities": "\u0baa\u0baf\u0ba9\u0bcd\u0baa\u0bbe\u0b9f\u0bc1\u0b95\u0bb3\u0bcd" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/locale/th-doc.json b/utilities/doctype/profile_control/locale/th-doc.json deleted file mode 100644 index 9f992af8b4..0000000000 --- a/utilities/doctype/profile_control/locale/th-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Profile Control": "\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14", - "Utilities": "\u0e22\u0e39\u0e17\u0e34\u0e25\u0e34\u0e15\u0e35\u0e49" -} \ No newline at end of file diff --git a/utilities/doctype/profile_control/profile_control.py b/utilities/doctype/profile_control/profile_control.py deleted file mode 100644 index 340293dc60..0000000000 --- a/utilities/doctype/profile_control/profile_control.py +++ /dev/null @@ -1,67 +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 - -sql = webnotes.conn.sql - - - -class DocType: - def __init__(self,d,dl): - self.doc, self.doclist = d,dl - self.last_profile = None - - def get_role_permission(self,role): - perm = sql("select distinct t1.`parent`, t1.`read`, t1.`write`, t1.`create`, t1.`submit`,t1.`cancel`,t1.`amend` from `tabDocPerm` t1, `tabDocType` t2 where t1.`role` ='%s' and t1.docstatus !=2 and t1.permlevel = 0 and t1.`read` = 1 and t2.module != 'Recycle Bin' and t1.parent=t2.name "%role) - return perm or '' - -#------------return role list ------------------------------------------------------------------------------------------------- - # All roles of Role Master - def get_role(self): - r_list=sql("select name from `tabRole` where name not in ('Administrator','All','Guest')") - if r_list[0][0]: - r_list = [x[0] for x in r_list] - return r_list - - # Only user specific role - def get_user_role(self,usr): - r_list=sql("select role from `tabUserRole` where parent=%s and role not in ('Administrator','All','Guest')",usr) - if r_list[0][0]: - r_list = [x[0] for x in r_list] - else: - r_list=[] - return r_list - - # adding new role - def add_user_role(self,args): - arg=eval(args) - sql("delete from `tabUserRole` where parenttype='Profile' and parent ='%s'" % (cstr(arg['user']))) - role_list = arg['role_list'].split(',') - for r in role_list: - pr=Document('UserRole') - pr.parent = arg['user'] - pr.parenttype = 'Profile' - pr.role = r - pr.parentfield = 'userroles' - pr.save(1) - diff --git a/utilities/doctype/profile_control/profile_control.txt b/utilities/doctype/profile_control/profile_control.txt deleted file mode 100644 index e0904cd9dc..0000000000 --- a/utilities/doctype/profile_control/profile_control.txt +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "creation": "2012-03-27 14:36:47", - "docstatus": 0, - "modified": "2012-03-27 14:36:47", - "modified_by": "Administrator", - "owner": "Administrator" - }, - { - "doctype": "DocType", - "issingle": 1, - "module": "Utilities", - "name": "__common__", - "section_style": "Simple", - "show_in_menu": 0, - "version": 12 - }, - { - "doctype": "DocType", - "name": "Profile Control" - } -] \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/__init__.py b/utilities/doctype/sms_receiver/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/utilities/doctype/sms_receiver/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/utilities/doctype/sms_receiver/locale/_messages_doc.json b/utilities/doctype/sms_receiver/locale/_messages_doc.json deleted file mode 100644 index e9845c5bfa..0000000000 --- a/utilities/doctype/sms_receiver/locale/_messages_doc.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - "SMS Receiver", - "Utilities", - "Receiver Name", - "Customer Name", - "Mobile No" -] \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/locale/ar-doc.json b/utilities/doctype/sms_receiver/locale/ar-doc.json deleted file mode 100644 index 3722d5f95f..0000000000 --- a/utilities/doctype/sms_receiver/locale/ar-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Customer Name": "\u0627\u0633\u0645 \u0627\u0644\u0639\u0645\u064a\u0644", - "Mobile No": "\u0631\u0642\u0645 \u0627\u0644\u062c\u0648\u0627\u0644", - "Receiver Name": "\u0627\u0633\u062a\u0642\u0628\u0627\u0644 \u0627\u0633\u0645", - "SMS Receiver": "SMS \u0627\u0633\u062a\u0642\u0628\u0627\u0644", - "Utilities": "\u062e\u062f\u0645\u0627\u062a" -} \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/locale/de-doc.json b/utilities/doctype/sms_receiver/locale/de-doc.json deleted file mode 100644 index 59bea69150..0000000000 --- a/utilities/doctype/sms_receiver/locale/de-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Customer Name": "Name des Kunden", - "Mobile No": "In Mobile", - "Receiver Name": "Name des Empf\u00e4ngers", - "SMS Receiver": "SMS-Empf\u00e4nger", - "Utilities": "Dienstprogramme" -} \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/locale/es-doc.json b/utilities/doctype/sms_receiver/locale/es-doc.json deleted file mode 100644 index 69ea344239..0000000000 --- a/utilities/doctype/sms_receiver/locale/es-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Customer Name": "Nombre del cliente", - "Mobile No": "Mobile No", - "Receiver Name": "Nombre del receptor", - "SMS Receiver": "SMS Receiver", - "Utilities": "Utilidades" -} \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/locale/fr-doc.json b/utilities/doctype/sms_receiver/locale/fr-doc.json deleted file mode 100644 index e69e00e86f..0000000000 --- a/utilities/doctype/sms_receiver/locale/fr-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Customer Name": "Nom du client", - "Mobile No": "Aucun mobile", - "Receiver Name": "Nom du destinataire", - "SMS Receiver": "SMS Receiver", - "Utilities": "Utilitaires" -} \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/locale/hi-doc.json b/utilities/doctype/sms_receiver/locale/hi-doc.json deleted file mode 100644 index 8b957e80c1..0000000000 --- a/utilities/doctype/sms_receiver/locale/hi-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Customer Name": "\u0917\u094d\u0930\u093e\u0939\u0915 \u0915\u093e \u0928\u093e\u092e", - "Mobile No": "\u0928\u0939\u0940\u0902 \u092e\u094b\u092c\u093e\u0907\u0932", - "Receiver Name": "\u0930\u093f\u0938\u0940\u0935\u0930 \u0928\u093e\u092e", - "SMS Receiver": "\u090f\u0938\u090f\u092e\u090f\u0938 \u0930\u093f\u0938\u0940\u0935\u0930", - "Utilities": "\u0909\u092a\u092f\u094b\u0917\u093f\u0924\u093e\u090f\u0901" -} \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/locale/hr-doc.json b/utilities/doctype/sms_receiver/locale/hr-doc.json deleted file mode 100644 index 3f7377f55e..0000000000 --- a/utilities/doctype/sms_receiver/locale/hr-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Customer Name": "Naziv klijenta", - "Mobile No": "Mobitel Nema", - "Receiver Name": "Primatelj Ime", - "SMS Receiver": "SMS-prijemnik", - "Utilities": "Komunalne usluge" -} \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/locale/nl-doc.json b/utilities/doctype/sms_receiver/locale/nl-doc.json deleted file mode 100644 index e31d3bb666..0000000000 --- a/utilities/doctype/sms_receiver/locale/nl-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Customer Name": "Klantnaam", - "Mobile No": "Mobiel Nog geen", - "Receiver Name": "Ontvanger Naam", - "SMS Receiver": "SMS-ontvanger", - "Utilities": "Utilities" -} \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/locale/pt-BR-doc.json b/utilities/doctype/sms_receiver/locale/pt-BR-doc.json deleted file mode 100644 index c4fb837c1e..0000000000 --- a/utilities/doctype/sms_receiver/locale/pt-BR-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Customer Name": "Nome do cliente", - "Mobile No": "Telefone Celular", - "Receiver Name": "Nome do recebedor", - "SMS Receiver": "Receptor do SMS", - "Utilities": "Utilit\u00e1rios" -} \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/locale/pt-doc.json b/utilities/doctype/sms_receiver/locale/pt-doc.json deleted file mode 100644 index e321c255d6..0000000000 --- a/utilities/doctype/sms_receiver/locale/pt-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Customer Name": "Nome do cliente", - "Mobile No": "No m\u00f3vel", - "Receiver Name": "Nome receptor", - "SMS Receiver": "SMS Receptor", - "Utilities": "Utilit\u00e1rios" -} \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/locale/sr-doc.json b/utilities/doctype/sms_receiver/locale/sr-doc.json deleted file mode 100644 index 7c8988beea..0000000000 --- a/utilities/doctype/sms_receiver/locale/sr-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Customer Name": "\u0418\u043c\u0435 \u043a\u043b\u0438\u0458\u0435\u043d\u0442\u0430", - "Mobile No": "\u041c\u043e\u0431\u0438\u043b\u043d\u0438 \u041d\u0435\u043c\u0430", - "Receiver Name": "\u041f\u0440\u0438\u0458\u0435\u043c\u043d\u0438\u043a \u0418\u043c\u0435", - "SMS Receiver": "\u0421\u041c\u0421 \u043f\u0440\u0438\u0458\u0435\u043c\u043d\u0438\u043a", - "Utilities": "\u041a\u043e\u043c\u0443\u043d\u0430\u043b\u043d\u0435 \u0443\u0441\u043b\u0443\u0433\u0435" -} \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/locale/ta-doc.json b/utilities/doctype/sms_receiver/locale/ta-doc.json deleted file mode 100644 index 10c5d6d5ed..0000000000 --- a/utilities/doctype/sms_receiver/locale/ta-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Customer Name": "\u0bb5\u0bbe\u0b9f\u0bbf\u0b95\u0bcd\u0b95\u0bc8\u0baf\u0bbe\u0bb3\u0bb0\u0bcd \u0baa\u0bc6\u0baf\u0bb0\u0bcd", - "Mobile No": "\u0b87\u0bb2\u0bcd\u0bb2\u0bc8 \u0bae\u0bc6\u0bbe\u0baa\u0bc8\u0bb2\u0bcd", - "Receiver Name": "\u0bb0\u0bbf\u0b9a\u0bc0\u0bb5\u0bb0\u0bcd \u0baa\u0bc6\u0baf\u0bb0\u0bcd", - "SMS Receiver": "\u0b8e\u0bb8\u0bcd\u0b8e\u0bae\u0bcd\u0b8e\u0bb8\u0bcd \u0baa\u0bc6\u0bb1\u0bc1\u0ba8\u0bb0\u0bcd", - "Utilities": "\u0baa\u0baf\u0ba9\u0bcd\u0baa\u0bbe\u0b9f\u0bc1\u0b95\u0bb3\u0bcd" -} \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/locale/th-doc.json b/utilities/doctype/sms_receiver/locale/th-doc.json deleted file mode 100644 index e1e45a7b9a..0000000000 --- a/utilities/doctype/sms_receiver/locale/th-doc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "Customer Name": "\u0e0a\u0e37\u0e48\u0e2d\u0e25\u0e39\u0e01\u0e04\u0e49\u0e32", - "Mobile No": "\u0e21\u0e37\u0e2d\u0e16\u0e37\u0e2d\u0e44\u0e21\u0e48\u0e21\u0e35", - "Receiver Name": "\u0e0a\u0e37\u0e48\u0e2d\u0e1c\u0e39\u0e49\u0e23\u0e31\u0e1a", - "SMS Receiver": "\u0e23\u0e31\u0e1a SMS", - "Utilities": "\u0e22\u0e39\u0e17\u0e34\u0e25\u0e34\u0e15\u0e35\u0e49" -} \ No newline at end of file diff --git a/utilities/doctype/sms_receiver/sms_receiver.py b/utilities/doctype/sms_receiver/sms_receiver.py deleted file mode 100644 index 7f48feb2eb..0000000000 --- a/utilities/doctype/sms_receiver/sms_receiver.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/utilities/doctype/sms_receiver/sms_receiver.txt b/utilities/doctype/sms_receiver/sms_receiver.txt deleted file mode 100644 index 1075d21999..0000000000 --- a/utilities/doctype/sms_receiver/sms_receiver.txt +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "creation": "2013-02-22 01:28:07", - "docstatus": 0, - "modified": "2013-03-07 07:03:32", - "modified_by": "Administrator", - "owner": "Administrator" - }, - { - "doctype": "DocType", - "istable": 1, - "module": "Utilities", - "name": "__common__" - }, - { - "doctype": "DocField", - "fieldtype": "Data", - "name": "__common__", - "oldfieldtype": "Data", - "parent": "SMS Receiver", - "parentfield": "fields", - "parenttype": "DocType", - "permlevel": 0 - }, - { - "doctype": "DocType", - "name": "SMS Receiver" - }, - { - "doctype": "DocField", - "fieldname": "customer_name", - "label": "Customer Name", - "oldfieldname": "customer_name" - }, - { - "doctype": "DocField", - "fieldname": "receiver_name", - "label": "Receiver Name", - "oldfieldname": "receiver_name", - "print_width": "350px", - "width": "350px" - }, - { - "doctype": "DocField", - "fieldname": "mobile_no", - "label": "Mobile No", - "oldfieldname": "mobile_no", - "print_width": "200px", - "reqd": 1, - "width": "200px" - } -] \ No newline at end of file diff --git a/utilities/doctype/trash_control/__init__.py b/utilities/doctype/trash_control/__init__.py deleted file mode 100644 index baffc48825..0000000000 --- a/utilities/doctype/trash_control/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from __future__ import unicode_literals diff --git a/utilities/doctype/trash_control/locale/_messages_doc.json b/utilities/doctype/trash_control/locale/_messages_doc.json deleted file mode 100644 index f424475c9f..0000000000 --- a/utilities/doctype/trash_control/locale/_messages_doc.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - "Trash Control", - "Utilities" -] \ No newline at end of file diff --git a/utilities/doctype/trash_control/locale/ar-doc.json b/utilities/doctype/trash_control/locale/ar-doc.json deleted file mode 100644 index 2ad9b6273f..0000000000 --- a/utilities/doctype/trash_control/locale/ar-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Trash Control": "\u0627\u0644\u0642\u0645\u0627\u0645\u0629 \u0627\u0644\u062a\u062d\u0643\u0645", - "Utilities": "\u062e\u062f\u0645\u0627\u062a" -} \ No newline at end of file diff --git a/utilities/doctype/trash_control/locale/de-doc.json b/utilities/doctype/trash_control/locale/de-doc.json deleted file mode 100644 index faa5da4ccb..0000000000 --- a/utilities/doctype/trash_control/locale/de-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Trash Control": "Trash Steuerung", - "Utilities": "Dienstprogramme" -} \ No newline at end of file diff --git a/utilities/doctype/trash_control/locale/es-doc.json b/utilities/doctype/trash_control/locale/es-doc.json deleted file mode 100644 index a8952ada04..0000000000 --- a/utilities/doctype/trash_control/locale/es-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Trash Control": "Control de Basura", - "Utilities": "Utilidades" -} \ No newline at end of file diff --git a/utilities/doctype/trash_control/locale/fr-doc.json b/utilities/doctype/trash_control/locale/fr-doc.json deleted file mode 100644 index 98943b73ac..0000000000 --- a/utilities/doctype/trash_control/locale/fr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Trash Control": "Contr\u00f4le Corbeille", - "Utilities": "Utilitaires" -} \ No newline at end of file diff --git a/utilities/doctype/trash_control/locale/hi-doc.json b/utilities/doctype/trash_control/locale/hi-doc.json deleted file mode 100644 index 8b97895079..0000000000 --- a/utilities/doctype/trash_control/locale/hi-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Trash Control": "\u091f\u094d\u0930\u0948\u0936 \u0928\u093f\u092f\u0902\u0924\u094d\u0930\u0923", - "Utilities": "\u0909\u092a\u092f\u094b\u0917\u093f\u0924\u093e\u090f\u0901" -} \ No newline at end of file diff --git a/utilities/doctype/trash_control/locale/hr-doc.json b/utilities/doctype/trash_control/locale/hr-doc.json deleted file mode 100644 index 1d1e9d6cda..0000000000 --- a/utilities/doctype/trash_control/locale/hr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Trash Control": "Sme\u0107e kontrola", - "Utilities": "Komunalne usluge" -} \ No newline at end of file diff --git a/utilities/doctype/trash_control/locale/nl-doc.json b/utilities/doctype/trash_control/locale/nl-doc.json deleted file mode 100644 index 13f90acf56..0000000000 --- a/utilities/doctype/trash_control/locale/nl-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Trash Control": "Trash Controle", - "Utilities": "Utilities" -} \ No newline at end of file diff --git a/utilities/doctype/trash_control/locale/pt-BR-doc.json b/utilities/doctype/trash_control/locale/pt-BR-doc.json deleted file mode 100644 index 2c4e803c64..0000000000 --- a/utilities/doctype/trash_control/locale/pt-BR-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Trash Control": "Controle de lixo", - "Utilities": "Utilit\u00e1rios" -} \ No newline at end of file diff --git a/utilities/doctype/trash_control/locale/pt-doc.json b/utilities/doctype/trash_control/locale/pt-doc.json deleted file mode 100644 index 2c4e803c64..0000000000 --- a/utilities/doctype/trash_control/locale/pt-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Trash Control": "Controle de lixo", - "Utilities": "Utilit\u00e1rios" -} \ No newline at end of file diff --git a/utilities/doctype/trash_control/locale/sr-doc.json b/utilities/doctype/trash_control/locale/sr-doc.json deleted file mode 100644 index 2fc085d273..0000000000 --- a/utilities/doctype/trash_control/locale/sr-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Trash Control": "\u0421\u043c\u0435\u045b\u0435 \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u0430", - "Utilities": "\u041a\u043e\u043c\u0443\u043d\u0430\u043b\u043d\u0435 \u0443\u0441\u043b\u0443\u0433\u0435" -} \ No newline at end of file diff --git a/utilities/doctype/trash_control/locale/ta-doc.json b/utilities/doctype/trash_control/locale/ta-doc.json deleted file mode 100644 index 4c7827bee5..0000000000 --- a/utilities/doctype/trash_control/locale/ta-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Trash Control": "\u0b95\u0bc1\u0baa\u0bcd\u0baa\u0bc8 \u0b95\u0b9f\u0bcd\u0b9f\u0bc1\u0baa\u0bcd\u0baa\u0bbe\u0b9f\u0bc1", - "Utilities": "\u0baa\u0baf\u0ba9\u0bcd\u0baa\u0bbe\u0b9f\u0bc1\u0b95\u0bb3\u0bcd" -} \ No newline at end of file diff --git a/utilities/doctype/trash_control/locale/th-doc.json b/utilities/doctype/trash_control/locale/th-doc.json deleted file mode 100644 index f62351c6d4..0000000000 --- a/utilities/doctype/trash_control/locale/th-doc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Trash Control": "\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e16\u0e31\u0e07\u0e02\u0e22\u0e30", - "Utilities": "\u0e22\u0e39\u0e17\u0e34\u0e25\u0e34\u0e15\u0e35\u0e49" -} \ No newline at end of file diff --git a/utilities/doctype/trash_control/trash_control.py b/utilities/doctype/trash_control/trash_control.py deleted file mode 100644 index 341f837031..0000000000 --- a/utilities/doctype/trash_control/trash_control.py +++ /dev/null @@ -1,68 +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 now -from webnotes.model import db_exists -from webnotes.model.bean import copy_doclist -from webnotes.model.code import get_obj - -sql = webnotes.conn.sql - - - -class DocType: - def __init__(self, d, dl): - self.doc, self.doclist = d, dl - - - # Get Masters - # ----------- - def get_masters(self): - mlist = [] - res = sql("select distinct t1.name from tabDocType t1, tabDocPerm t2 where ifnull(t1.allow_trash, 0) = 1 and (ifnull(t2.write, 0) = 1 or ifnull(t2.create, 0) = 1) and t2.role in (%s) and t2.parent = t1.name and t1.module not in ('DocType','Application Internal','Recycle Bin','Development','Testing','Testing System','Test') ORDER BY t1.name" % ("'"+"', '".join(webnotes.user.get_roles())+"'")) - for r in res: - mlist.append(r[0]) - return mlist - - - # Get Trash Records - # ----------------- - def get_trash_records(self, mast_name): - mlist = [] - rec_dict = {} - if mast_name == 'All': - mlist = self.get_masters() - else: - mlist.append(mast_name) - for i in mlist: - rec = [r[0] for r in sql("select name from `tab%s` where docstatus = 2" % i)] - if rec: - rec_dict[i] = rec - return rec_dict - - - # Restore Records - # --------------- - def restore_records(self, arg): - arg = eval(arg) - for k in arg: - for r in arg[k]: - sql("update `tab%s` set docstatus = 0, modified = '%s', trash_reason = '' where name = '%s'" % (k, now(), r)) - dt_obj = get_obj(k,r) - if hasattr(dt_obj, 'on_restore'): dt_obj.on_restore() diff --git a/utilities/doctype/trash_control/trash_control.txt b/utilities/doctype/trash_control/trash_control.txt deleted file mode 100644 index 412e38d10f..0000000000 --- a/utilities/doctype/trash_control/trash_control.txt +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "creation": "2012-03-27 14:36:47", - "docstatus": 0, - "modified": "2012-03-27 14:36:47", - "modified_by": "Administrator", - "owner": "Administrator" - }, - { - "doctype": "DocType", - "in_create": 1, - "issingle": 1, - "module": "Utilities", - "name": "__common__", - "read_only": 1, - "section_style": "Simple", - "version": 35 - }, - { - "doctype": "DocType", - "name": "Trash Control" - } -] \ No newline at end of file