Fixes in Manage Variants
This commit is contained in:
parent
3f2604eff6
commit
724fd82419
@ -8,4 +8,5 @@ def execute():
|
||||
manage_variant.attributes = frappe.db.sql("select item_attribute as attribute, item_attribute_value as attribute_value \
|
||||
from `tabItem Variant` where parent = %s", d.name, as_dict=1)
|
||||
manage_variant.generate_combinations()
|
||||
manage_variant.create_variants()
|
||||
manage_variant.create_variants()
|
||||
frappe.delete_doc("doctype", "Item Variant")
|
@ -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",
|
||||
|
@ -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": [],
|
@ -6,5 +6,5 @@ from __future__ import unicode_literals
|
||||
import frappe
|
||||
from frappe.model.document import Document
|
||||
|
||||
class VariantItem(Document):
|
||||
class ManageVariantsItem(Document):
|
||||
pass
|
Loading…
x
Reference in New Issue
Block a user