Fixes in Manage Variants

This commit is contained in:
Neil Trini Lasrado 2015-06-30 12:52:39 +05:30
parent 3f2604eff6
commit 724fd82419
5 changed files with 16 additions and 7 deletions

View File

@ -9,3 +9,4 @@ def execute():
from `tabItem Variant` where parent = %s", d.name, as_dict=1)
manage_variant.generate_combinations()
manage_variant.create_variants()
frappe.delete_doc("doctype", "Item Variant")

View File

@ -17,6 +17,13 @@
"precision": "",
"reqd": 1
},
{
"fieldname": "section_break_2",
"fieldtype": "Section Break",
"label": "Item Variant Attributes",
"permlevel": 0,
"precision": ""
},
{
"allow_on_submit": 0,
"fieldname": "attributes",
@ -48,6 +55,7 @@
{
"fieldname": "section_break_4",
"fieldtype": "Section Break",
"label": "Item Variants",
"permlevel": 0,
"precision": ""
},
@ -55,7 +63,7 @@
"fieldname": "variants",
"fieldtype": "Table",
"label": "Variants",
"options": "Variant Item",
"options": "Manage Variants Item",
"permlevel": 0,
"precision": ""
}
@ -67,7 +75,7 @@
"is_submittable": 0,
"issingle": 1,
"istable": 0,
"modified": "2015-05-28 06:18:03.238411",
"modified": "2015-06-30 03:18:13.787883",
"modified_by": "Administrator",
"module": "Stock",
"name": "Manage Variants",

View File

@ -47,7 +47,7 @@
{
"fieldname": "attributes",
"fieldtype": "Text",
"hidden": 0,
"hidden": 1,
"label": "attributes",
"permlevel": 0,
"precision": "",
@ -62,10 +62,10 @@
"is_submittable": 0,
"issingle": 0,
"istable": 1,
"modified": "2015-05-29 02:09:33.622631",
"modified": "2015-06-30 03:19:07.548196",
"modified_by": "Administrator",
"module": "Stock",
"name": "Variant Item",
"name": "Manage Variants Item",
"name_case": "",
"owner": "Administrator",
"permissions": [],

View File

@ -6,5 +6,5 @@ from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class VariantItem(Document):
class ManageVariantsItem(Document):
pass