[FIX]base_module_doc_rst: remove context
authorKuldeep Joshi (OpenERP) <kjo@tinyerp.com>
Thu, 2 Feb 2012 12:13:51 +0000 (17:43 +0530)
committerKuldeep Joshi (OpenERP) <kjo@tinyerp.com>
Thu, 2 Feb 2012 12:13:51 +0000 (17:43 +0530)
bzr revid: kjo@tinyerp.com-20120202121351-hi9vxkuh7uh4nm28

addons/base_module_doc_rst/wizard/generate_relation_graph.py
addons/base_module_doc_rst/wizard/generate_relation_graph_view.xml
addons/base_module_doc_rst/wizard/tech_guide_rst_view.xml
addons/base_module_doc_rst/wizard/tech_rst_guide.py

index 5d2b7e9..4a70864 100644 (file)
@@ -29,7 +29,7 @@ class create_graph(osv.osv_memory):
 
     def get_graph(self, cr, uid, datas, context=None):
         mod_obj = pooler.get_pool(cr.dbname).get('ir.module.module')
-        modules = mod_obj.browse(cr, uid, context['ids'], context=context)
+        modules = mod_obj.browse(cr, uid, context['active_ids'], context=context)
         for module in modules:
             module_data = mod_obj.get_relation_graph(cr, uid, module.name, context=context)
             if module_data['module_file']:
@@ -38,4 +38,4 @@ class create_graph(osv.osv_memory):
 
 create_graph()
 
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
index 29af49e..9b61633 100644 (file)
@@ -22,7 +22,6 @@
                <field name="view_type">form</field>
                <field name="view_mode">form</field>
                <field name="view_id" ref="view_relationship_graph"/>
-               <field name="context">{'ids': [active_id], 'id': active_id}</field>
                <field name="target">new</field>
         </record>
     
@@ -36,4 +35,4 @@
         </record>
 
     </data>
-</openerp>
\ No newline at end of file
+</openerp>
index 2d95e82..66c09fa 100644 (file)
     id="wiz_tech_guide_rst"
     multi="True"
     key2="client_action_multi" name="Create RST Technical Guide2"
-    context="{'ids': [active_id], 'id': active_id}"
     res_model="tech.guide.rst" src_model="ir.module.module"
     view_mode="form" target="new" view_type="form"
     view_id="view_technical_guide"/>
 
   
     </data>
-</openerp>
\ No newline at end of file
+</openerp>
index 82513fd..5289cf2 100644 (file)
@@ -237,8 +237,7 @@ class RstDoc(object):
             field_dict = field_def[1]
             field_required = field_dict.get('required', '') and ', required'
             field_readonly = field_dict.get('readonly', '') and ', readonly'
-
-            field_help_s = field_dict.get('help', '').strip()
+            field_help_s = field_dict.get('help', '')
             if field_help_s:
                 field_help_s = "*%s*" % (field_help_s)
                 field_help = '\n'.join(['    %s' % line.strip() for line in field_help_s.split('\n')])
@@ -316,7 +315,7 @@ class wizard_tech_guide_rst(osv.osv_memory):
     def _generate(self, cr, uid, context):
         pool = pooler.get_pool(cr.dbname)
         module_model = pool.get('ir.module.module')
-        module_ids = context['ids']
+        module_ids = context['active_ids']
 
         module_index = []
 
@@ -476,12 +475,12 @@ class wizard_tech_guide_rst(osv.osv_memory):
             logger.notifyChannel("base_module_doc_rst", netsvc.LOG_ERROR, msg)
             return ""
 
-        _defaults ={
-            'rst_file' : _generate,
-            'name': 'modules_technical_guide_rst.tgz'
-            }
+    _defaults ={
+        'rst_file' : _generate,
+        'name': 'modules_technical_guide_rst.tgz'
+        }
 
 wizard_tech_guide_rst()
 
 
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: