fix with the module recorder
authorChristophe Simonis <christophe@tinyerp.com>
Tue, 9 Sep 2008 06:51:15 +0000 (08:51 +0200)
committerChristophe Simonis <christophe@tinyerp.com>
Tue, 9 Sep 2008 06:51:15 +0000 (08:51 +0200)
bzr revid: christophe@tinyerp.com-20080909065115-1205mvi2gkoe4k3p

addons/base_module_record/base_module_record.py
addons/base_module_record/wizard/base_module_save.py

index 6c13054..1a623b2 100644 (file)
@@ -209,7 +209,7 @@ def fnct_call(fnct):
         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
index 1b26c34..458e574 100644 (file)
@@ -74,7 +74,7 @@ intro_save_form = '''<?xml version="1.0"?>
     <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"/>
@@ -146,7 +146,6 @@ def _create_module(self, cr, uid, data, context):
         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'