[cleanup] removed Featured Item, Website Product Category, Valuation Control

This commit is contained in:
Rushabh Mehta 2013-06-11 12:03:37 +05:30
parent aa069565de
commit c382eb58d5
46 changed files with 1 additions and 401 deletions

View File

@ -34,18 +34,7 @@ def update_template_args(page_name, args):
t['child_items'] = []
t['child_items'].append(d)
break
if top_items and ("products" in [d.url.split(".")[0] for d in top_items if d.url]):
# product categories
products = webnotes.conn.sql("""select t1.item_group as label,
t2.page_name as url,
ifnull(t1.indent,0) as indent
from `tabWebsite Product Category` t1, `tabItem Group` t2
where t1.item_group = t2.name
and ifnull(t2.show_in_website,0)=1 order by t1.idx""", as_dict=1)
products_item = filter(lambda d: d.url and d.url.split(".")[0]=="products", top_items)[0]
products_item.child_items = products
ret = webnotes._dict({
'top_bar_items': top_items,
'footer_items': webnotes.conn.sql("""\

View File

@ -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 <http://www.gnu.org/licenses/>.
from __future__ import unicode_literals
import webnotes
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl

View File

@ -1,35 +0,0 @@
[
{
"creation": "2013-02-22 01:28:00",
"docstatus": 0,
"modified": "2013-03-07 07:03:21",
"modified_by": "Administrator",
"owner": "Administrator"
},
{
"description": "Featured Item in Item Group",
"doctype": "DocType",
"istable": 1,
"module": "Stock",
"name": "__common__"
},
{
"doctype": "DocField",
"fieldname": "item",
"fieldtype": "Link",
"label": "Item",
"name": "__common__",
"options": "Item",
"parent": "Featured Item",
"parentfield": "fields",
"parenttype": "DocType",
"permlevel": 0
},
{
"doctype": "DocType",
"name": "Featured Item"
},
{
"doctype": "DocField"
}
]

View File

@ -1,6 +0,0 @@
[
"Item",
"Featured Item in Item Group",
"Featured Item",
"Stock"
]

View File

@ -1,6 +0,0 @@
{
"Featured Item": "\u0645\u0645\u064a\u0632\u0629",
"Featured Item in Item Group": "\u0645\u0645\u064a\u0632\u0629 \u0641\u064a \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629 \u0627\u0644\u0633\u0644\u0639\u0629",
"Item": "\u0628\u0646\u062f",
"Stock": "\u0627\u0644\u0623\u0648\u0631\u0627\u0642 \u0627\u0644\u0645\u0627\u0644\u064a\u0629"
}

View File

@ -1,6 +0,0 @@
{
"Featured Item": "Feature-Produkt",
"Featured Item in Item Group": "Feature-Produkt bei Posten Gruppe",
"Item": "Artikel",
"Stock": "Lager"
}

View File

@ -1,6 +0,0 @@
{
"Featured Item": "Producto destacado",
"Featured Item in Item Group": "Producto destacado en el Grupo del art\u00edculo",
"Item": "Art\u00edculo",
"Stock": "Valores"
}

View File

@ -1,6 +0,0 @@
{
"Featured Item": "Produit vedette",
"Featured Item in Item Group": "Produit vedette dans le groupe d&#39;article",
"Item": "Article",
"Stock": "Stock"
}

View File

@ -1,6 +0,0 @@
{
"Featured Item": "\u0935\u093f\u0936\u0947\u0937 \u0930\u0941\u092a \u0938\u0947 \u092a\u094d\u0930\u0926\u0930\u094d\u0936\u093f\u0924 \u0906\u0907\u091f\u092e",
"Featured Item in Item Group": "\u0906\u0907\u091f\u092e \u0938\u092e\u0942\u0939 \u092e\u0947\u0902 \u091a\u093f\u0924\u094d\u0930\u093f\u0924 \u0906\u0907\u091f\u092e",
"Item": "\u092e\u0926",
"Stock": "\u0938\u094d\u091f\u0949\u0915"
}

View File

@ -1,6 +0,0 @@
{
"Featured Item": "Prikazan artikla",
"Featured Item in Item Group": "Prikazan artikla u to\u010dki Grupe",
"Item": "Stavka",
"Stock": "Zaliha"
}

View File

@ -1,6 +0,0 @@
{
"Featured Item": "Featured Product",
"Featured Item in Item Group": "Featured Product in punt Group",
"Item": "Item",
"Stock": "Voorraad"
}

View File

@ -1,6 +0,0 @@
{
"Featured Item": "Item Destacado",
"Featured Item in Item Group": "Item destacado no Grupo de Itens",
"Item": "Item",
"Stock": "Estoque"
}

View File

@ -1,6 +0,0 @@
{
"Featured Item": "Item Destacado",
"Featured Item in Item Group": "Item destacado no Grupo item",
"Item": "Item",
"Stock": "Estoque"
}

View File

@ -1,6 +0,0 @@
{
"Featured Item": "\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0459\u0430\u043c\u043e",
"Featured Item in Item Group": "\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0459\u0430\u043c\u043e \u0442\u0430\u0447\u043a\u0430 \u0443 \u0433\u0440\u0443\u043f\u0438 \u0430\u0440\u0442\u0438\u043a\u043b\u0430",
"Item": "\u0421\u0442\u0430\u0432\u043a\u0430",
"Stock": "\u0417\u0430\u043b\u0438\u0445\u0430"
}

View File

@ -1,6 +0,0 @@
{
"Featured Item": "\u0b87\u0b9f\u0bae\u0bcd\u0baa\u0bc6\u0bb1\u0bcd\u0bb1\u0bbf\u0bb0\u0bc1\u0ba8\u0bcd\u0ba4\u0ba4\u0bc1 \u0baa\u0bc6\u0bbe\u0bb0\u0bc1\u0bb3\u0bcd",
"Featured Item in Item Group": "\u0baa\u0bc6\u0bbe\u0bb0\u0bc1\u0bb3\u0bcd \u0baa\u0bbf\u0bb0\u0bbf\u0bb5\u0bc1 \u0b87\u0b9f\u0bae\u0bcd\u0baa\u0bc6\u0bb1\u0bcd\u0bb1\u0ba4\u0bc1 \u0baa\u0bc6\u0bbe\u0bb0\u0bc1\u0bb3\u0bcd",
"Item": "\u0b89\u0bb0\u0bc1\u0baa\u0bcd\u0baa\u0b9f\u0bbf",
"Stock": "\u0baa\u0b99\u0bcd\u0b95\u0bc1"
}

View File

@ -1,6 +0,0 @@
{
"Featured Item": "\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e40\u0e14\u0e48\u0e19",
"Featured Item in Item Group": "\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e17\u0e35\u0e48\u0e42\u0e14\u0e14\u0e40\u0e14\u0e48\u0e19\u0e43\u0e19\u0e01\u0e25\u0e38\u0e48\u0e21\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32",
"Item": "\u0e0a\u0e34\u0e49\u0e19",
"Stock": "\u0e04\u0e25\u0e31\u0e07\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32"
}

View File

@ -1,4 +0,0 @@
[
"Valuation Control",
"Stock"
]

View File

@ -1,4 +0,0 @@
{
"Stock": "\u0627\u0644\u0623\u0648\u0631\u0627\u0642 \u0627\u0644\u0645\u0627\u0644\u064a\u0629",
"Valuation Control": "\u062a\u0642\u064a\u064a\u0645 \u0645\u0631\u0627\u0642\u0628\u0629"
}

View File

@ -1,4 +0,0 @@
{
"Stock": "Lager",
"Valuation Control": "Valuation Control-"
}

View File

@ -1,4 +0,0 @@
{
"Stock": "Valores",
"Valuation Control": "Evaluaci\u00f3n de Control"
}

View File

@ -1,4 +0,0 @@
{
"Stock": "Stock",
"Valuation Control": "Contr\u00f4le \u00e9valuation"
}

View File

@ -1,4 +0,0 @@
{
"Stock": "\u0938\u094d\u091f\u0949\u0915",
"Valuation Control": "\u092e\u0942\u0932\u094d\u092f\u093e\u0902\u0915\u0928 \u0928\u093f\u092f\u0902\u0924\u094d\u0930\u0923"
}

View File

@ -1,4 +0,0 @@
{
"Stock": "Zaliha",
"Valuation Control": "Vrednovanje kontrola"
}

View File

@ -1,4 +0,0 @@
{
"Stock": "Voorraad",
"Valuation Control": "Waardering Controle"
}

View File

@ -1,4 +0,0 @@
{
"Stock": "Estoque",
"Valuation Control": "Controle de Avalia\u00e7\u00e3o"
}

View File

@ -1,4 +0,0 @@
{
"Stock": "Estoque",
"Valuation Control": "Controle de valoriza\u00e7\u00e3o"
}

View File

@ -1,4 +0,0 @@
{
"Stock": "\u0417\u0430\u043b\u0438\u0445\u0430",
"Valuation Control": "\u041f\u0440\u043e\u0446\u0435\u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0430"
}

View File

@ -1,4 +0,0 @@
{
"Stock": "\u0baa\u0b99\u0bcd\u0b95\u0bc1",
"Valuation Control": "\u0bae\u0ba4\u0bbf\u0baa\u0bcd\u0baa\u0bc0\u0b9f\u0bcd\u0b9f\u0bc1 \u0b95\u0b9f\u0bcd\u0b9f\u0bc1\u0baa\u0bcd\u0baa\u0bbe\u0b9f\u0bc1"
}

View File

@ -1,4 +0,0 @@
{
"Stock": "\u0e04\u0e25\u0e31\u0e07\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32",
"Valuation Control": "\u0e04\u0e27\u0e1a\u0e04\u0e38\u0e21\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e40\u0e21\u0e34\u0e19"
}

View File

@ -1,7 +0,0 @@
[
"Website",
"Product Category for website",
"Indent",
"Item Group",
"Website Product Category"
]

View File

@ -1,13 +0,0 @@
{
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"Indent": "\u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0628\u0627\u062f\u0626\u0629",
"Item Group": "\u0627\u0644\u0628\u0646\u062f \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629",
"Product Category for website": "\u0641\u0626\u0629 \u0645\u0646 \u0641\u0626\u0627\u062a \u0627\u0644\u0645\u0646\u062a\u062c\u0627\u062a \u0644\u0645\u0648\u0642\u0639 \u0627\u0644\u0648\u064a\u0628",
"Website": "\u0627\u0644\u0645\u0648\u0642\u0639",
"Website Product Category": "\u0627\u0644\u0645\u0648\u0642\u0639 \u0641\u0626\u0629 \u0627\u0644\u0645\u0646\u062a\u062c"
}

View File

@ -1,7 +0,0 @@
{
"Indent": "Einzug",
"Item Group": "Artikel-Gruppe",
"Product Category for website": "Produktkategorie f\u00fcr Website",
"Website": "Webseite",
"Website Product Category": "Website Produktkategorie"
}

View File

@ -1,13 +0,0 @@
{
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"Indent": "Sangrar",
"Item Group": "Grupo de art\u00edculos",
"Product Category for website": "Categor\u00eda de productos para el sitio web",
"Website": "Sitio web",
"Website Product Category": "Sitio web Categor\u00eda de producto"
}

View File

@ -1,13 +0,0 @@
{
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"Indent": "Tiret",
"Item Group": "Groupe d&#39;\u00e9l\u00e9ments",
"Product Category for website": "Cat\u00e9gorie de produit pour le site web",
"Website": "Site Web",
"Website Product Category": "Cat\u00e9gorie de produit site web"
}

View File

@ -1,13 +0,0 @@
{
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"Indent": "\u092e\u093e\u0902\u0917\u092a\u0924\u094d\u0930",
"Item Group": "\u0906\u0907\u091f\u092e \u0938\u092e\u0942\u0939",
"Product Category for website": "\u0935\u0947\u092c\u0938\u093e\u0907\u091f \u0915\u0947 \u0932\u093f\u090f \u0909\u0924\u094d\u092a\u093e\u0926 \u0936\u094d\u0930\u0947\u0923\u0940",
"Website": "\u0935\u0947\u092c\u0938\u093e\u0907\u091f",
"Website Product Category": "\u0935\u0947\u092c\u0938\u093e\u0907\u091f \u0909\u0924\u094d\u092a\u093e\u0926 \u0936\u094d\u0930\u0947\u0923\u0940"
}

View File

@ -1,13 +0,0 @@
{
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"Indent": "Uvu\u0107i",
"Item Group": "Stavka Grupa",
"Product Category for website": "Proizvod Kategorija za web stranicu",
"Website": "Website",
"Website Product Category": "Web Kategorija proizvoda"
}

View File

@ -1,13 +0,0 @@
{
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"Indent": "Inspringen",
"Item Group": "Item Group",
"Product Category for website": "Product Categorie voor website",
"Website": "Website",
"Website Product Category": "Website Product Category"
}

View File

@ -1,7 +0,0 @@
{
"Indent": "Recuar",
"Item Group": "Grupo de Itens",
"Product Category for website": "Categoria de Produto para o site",
"Website": "Site",
"Website Product Category": "Categoria de Produto do site"
}

View File

@ -1,13 +0,0 @@
{
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"Indent": "Recuar",
"Item Group": "Grupo Item",
"Product Category for website": "Categoria de Produto para o site",
"Website": "Site",
"Website Product Category": "Categoria de Produto site"
}

View File

@ -1,13 +0,0 @@
{
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"Indent": "\u0423\u0432\u0443\u045b\u0438",
"Item Group": "\u0421\u0442\u0430\u0432\u043a\u0430 \u0413\u0440\u0443\u043f\u0430",
"Product Category for website": "\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0458\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0430 \u0437\u0430 \u0441\u0430\u0458\u0442",
"Website": "\u0412\u0435\u0431\u0441\u0430\u0458\u0442",
"Website Product Category": "\u0421\u0430\u0458\u0442 \u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0458\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0430"
}

View File

@ -1,13 +0,0 @@
{
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"Indent": "(\u0b8e\u0bb4\u0bc1\u0ba4\u0bc1\u0bae\u0bcd\u0baa\u0bc7\u0bbe\u0ba4\u0bc1) \u0b93\u0bb0\u0ba4\u0bcd\u0ba4\u0bbf\u0bb2\u0bcd \u0b87\u0b9f\u0bae\u0bcd \u0bb5\u0bbf\u0b9f\u0bc1",
"Item Group": "\u0b89\u0bb0\u0bc1\u0baa\u0bcd\u0baa\u0b9f\u0bbf\u0baf\u0bc8 \u0b95\u0bc1\u0bb4\u0bc1",
"Product Category for website": "\u0bb5\u0bb2\u0bc8\u0ba4\u0bcd\u0ba4\u0bb3\u0ba4\u0bcd\u0ba4\u0bc8 \u0ba4\u0baf\u0bbe\u0bb0\u0bbf\u0baa\u0bcd\u0baa\u0bc1 \u0baa\u0bbf\u0bb0\u0bbf\u0bb5\u0bc1",
"Website": "\u0b87\u0ba3\u0bc8\u0baf\u0ba4\u0bb3\u0bae\u0bcd",
"Website Product Category": "\u0b87\u0ba3\u0bc8\u0baf \u0ba4\u0baf\u0bbe\u0bb0\u0bbf\u0baa\u0bcd\u0baa\u0bc1 \u0baa\u0bbf\u0bb0\u0bbf\u0bb5\u0bc1"
}

View File

@ -1,13 +0,0 @@
{
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"Indent": "\u0e22\u0e48\u0e2d\u0e2b\u0e19\u0e49\u0e32",
"Item Group": "\u0e01\u0e25\u0e38\u0e48\u0e21\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32",
"Product Category for website": "\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c",
"Website": "\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c",
"Website Product Category": "\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c"
}

View File

@ -1,8 +0,0 @@
# For license information, please see license.txt
from __future__ import unicode_literals
import webnotes
class DocType:
def __init__(self, d, dl):
self.doc, self.doclist = d, dl

View File

@ -1,43 +0,0 @@
[
{
"creation": "2013-02-22 01:28:09",
"docstatus": 0,
"modified": "2013-03-07 07:03:34",
"modified_by": "Administrator",
"owner": "Administrator"
},
{
"description": "Product Category for website",
"doctype": "DocType",
"document_type": "Transaction",
"istable": 1,
"module": "Website",
"name": "__common__"
},
{
"doctype": "DocField",
"name": "__common__",
"parent": "Website Product Category",
"parentfield": "fields",
"parenttype": "DocType",
"permlevel": 0
},
{
"doctype": "DocType",
"name": "Website Product Category"
},
{
"doctype": "DocField",
"fieldname": "item_group",
"fieldtype": "Link",
"label": "Item Group",
"options": "Item Group"
},
{
"doctype": "DocField",
"fieldname": "indent",
"fieldtype": "Select",
"label": "Indent",
"options": "0\n1\n2\n3\n4\n5"
}
]