bugfix
This commit is contained in:
parent
b06eab1abe
commit
7c35a4a6b1
16
xls2crud.py
16
xls2crud.py
@ -49,25 +49,33 @@ def subtable2toolbar(desc):
|
||||
"icon":"{{entire_url('/imgs/" + st.subtable + ".svg')}}",
|
||||
"label": st.title
|
||||
})
|
||||
var bind = {
|
||||
bind = {
|
||||
"wid":"self",
|
||||
"event":st.subtable,
|
||||
"actiontype": "urlwidget",
|
||||
"target":"PopupWindow",
|
||||
"popup_options":{
|
||||
"title":st.title or st.subtable,
|
||||
"icon": "{{entire_url('/appbase/get_icon.dspy')}}?id="+st.subtable,
|
||||
"resizable": True,
|
||||
"height":"70%",
|
||||
"width":"70%"
|
||||
},
|
||||
"params_mapping": {
|
||||
"mapping":{
|
||||
"id": st.field,
|
||||
"referer_widget":"referer_widget"
|
||||
},
|
||||
"need_other":False
|
||||
},
|
||||
"options":{
|
||||
"method":"POST",
|
||||
"params":{},
|
||||
"url":st.url or "{{entire_url('../" + st.subtable + "')}}"
|
||||
}
|
||||
};
|
||||
if (st.params_mapping){
|
||||
bind.params_mapping = st.params_mapping;
|
||||
}
|
||||
if st.mapping:
|
||||
bind['params_mapping']['mapping'].update(st.mapping)
|
||||
binds.append(bind);
|
||||
|
||||
desc.toolbar.tools = tools
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user