fix in naming and feature setup on install:
This commit is contained in:
parent
b54307d58e
commit
d21f55b5d2
@ -1,6 +1,6 @@
|
||||
{
|
||||
"autoname": "POS/.####",
|
||||
"creation": "2013-05-24 12:15:51.000000",
|
||||
"autoname": "naming_series:",
|
||||
"creation": "2013-05-24 12:15:51",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"fields": [
|
||||
@ -34,6 +34,7 @@
|
||||
"no_copy": 1,
|
||||
"oldfieldname": "naming_series",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "POS-Setting-.#",
|
||||
"permlevel": 0,
|
||||
"read_only": 0,
|
||||
"reqd": 1
|
||||
@ -200,7 +201,7 @@
|
||||
],
|
||||
"icon": "icon-cog",
|
||||
"idx": 1,
|
||||
"modified": "2014-01-29 13:08:25.000000",
|
||||
"modified": "2014-04-27 03:11:44.969097",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Accounts",
|
||||
"name": "POS Setting",
|
||||
|
@ -24,7 +24,7 @@ class NamingSeries(Document):
|
||||
}
|
||||
|
||||
def scrub_options_list(self, ol):
|
||||
options = filter(lambda x: x, [cstr(n.upper()).strip() for n in ol])
|
||||
options = filter(lambda x: x, [cstr(n).strip() for n in ol])
|
||||
return options
|
||||
|
||||
def update_series(self, arg=None):
|
||||
|
@ -57,7 +57,8 @@ def feature_setup():
|
||||
'fs_recurring_invoice', 'fs_pos', 'fs_manufacturing', 'fs_quality',
|
||||
'fs_page_break', 'fs_more_info', 'fs_pos_view'
|
||||
]
|
||||
doc.update(dict(zip(flds, [1]*len(flds))))
|
||||
for f in flds:
|
||||
doc.set(f, 1)
|
||||
doc.save()
|
||||
|
||||
def set_single_defaults():
|
||||
|
Loading…
x
Reference in New Issue
Block a user