added item specification, bugfix for form grid

This commit is contained in:
Rushabh Mehta
2012-12-17 16:00:34 +05:30
parent 834adfab60
commit 0e9e848cfc
7 changed files with 125 additions and 95 deletions

View File

@@ -2,9 +2,9 @@
{
"owner": "Administrator",
"docstatus": 0,
"creation": "2012-12-17 14:10:03",
"creation": "2012-12-17 14:56:32",
"modified_by": "Administrator",
"modified": "2012-12-17 14:12:10"
"modified": "2012-12-17 15:59:19"
},
{
"allow_attach": 1,
@@ -780,6 +780,44 @@
"fieldtype": "Select",
"permlevel": 0
},
{
"doctype": "DocField",
"fieldname": "cb72",
"fieldtype": "Column Break",
"permlevel": 0
},
{
"default": "Show Price in Website (if set)",
"doctype": "DocField",
"label": "Website Price List",
"options": "Price List",
"fieldname": "website_price_list",
"fieldtype": "Link",
"permlevel": 0
},
{
"description": "Show \"In Stock\" or \"Not in Stock\" based on stock available in this warehouse.",
"doctype": "DocField",
"label": "Website Warehouse",
"options": "Warehouse",
"fieldname": "website_warehouse",
"fieldtype": "Link",
"permlevel": 0
},
{
"doctype": "DocField",
"fieldname": "sb72",
"fieldtype": "Section Break",
"permlevel": 0
},
{
"doctype": "DocField",
"label": "Item Website Specifications",
"options": "Item Website Specification",
"fieldname": "item_website_specifications",
"fieldtype": "Table",
"permlevel": 0
},
{
"depends_on": "show_in_website",
"doctype": "DocField",
@@ -792,7 +830,6 @@
"depends_on": "show_in_website",
"doctype": "DocField",
"label": "Long Description",
"options": "Markdown",
"fieldname": "web_long_description",
"fieldtype": "Text Editor",
"permlevel": 0
@@ -803,8 +840,8 @@
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"role": "Material Manager",
"cancel": 0,
"role": "Material Manager",
"permlevel": 1
},
{
@@ -813,8 +850,8 @@
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"role": "Material Manager",
"cancel": 0,
"role": "Material Manager",
"permlevel": 0
},
{
@@ -823,8 +860,8 @@
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"role": "Material User",
"cancel": 0,
"role": "Material User",
"permlevel": 1
},
{
@@ -833,8 +870,8 @@
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"role": "Material User",
"cancel": 0,
"role": "Material User",
"permlevel": 0
},
{

View File

@@ -0,0 +1,8 @@
# 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

@@ -4,7 +4,7 @@
"docstatus": 0,
"creation": "2012-12-07 15:42:25",
"modified_by": "Administrator",
"modified": "2012-12-07 15:44:18"
"modified": "2012-12-17 15:29:37"
},
{
"istable": 1,