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']:
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:
<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>
</record>
</data>
-</openerp>
\ No newline at end of file
+</openerp>
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>
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')])
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 = []
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: