pool = pooler.get_pool(args[0])
mod = pool.get('ir.module.record')
if mod and mod.recording:
- if args[4] not in ('default_get','read','fields_view_get','fields_get','search','name_search','name_get','get','request_get', 'get_sc'):
+ if args[4] not in ('default_get','read','fields_view_get','fields_get','search','search_count','name_search','name_get','get','request_get', 'get_sc'):
mod.recording_data.append(('query', args, argv,res))
return res
return execute
<separator string="Module successfully created !" colspan="4"/>
<field name="module_filename"/>
<newline/>
- <field name="module_file"/>
+ <field name="module_file" filename="module_filename"/>
<separator string="Information" colspan="4"/>
<label string="If you think your module could interrest others people, we'd like you to publish it on TinyERP.com, in the 'Modules' section. You can do it through the website or using features of the 'base_module_publish' module." colspan="4" align="0.0"/>
<label string="Thanks in advance for your contribution." colspan="4" align="0.0"/>
info.external_attr = 2175008768
zip.writestr(info, datastr)
zip.close()
- print data['form']
return {
'module_file': base64.encodestring(s.getvalue()),
'module_filename': data['form']['directory_name']+'-'+data['form']['version']+'.zip'