~clearcorp-drivers/aeroo/7.0-ccorp

« back to all changes in this revision

Viewing changes to report_aeroo_ooo/installer.py

  • Committer: root
  • Date: 2013-02-06 13:21:35 UTC
  • Revision ID: root@erp.kndati.lv-20130206132135-rfxlz73di5m4wqf3
1.1.0 bugfix

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
            msg = _('Connection to OpenOffice.org instance was not established or convertion to PDF unsuccessful!')
125
125
        else:
126
126
            msg = _('Connection to the OpenOffice.org instance was successfully established and PDF convertion is working.')
127
 
        return self.write(cr, uid, ids, {'msg':msg,'error_details':error_details,'state':state})
 
127
        self.write(cr, uid, ids, {'msg':msg,'error_details':error_details,'state':state})
 
128
 
 
129
        mod_obj = self.pool.get('ir.model.data')
 
130
        act_obj = self.pool.get('ir.actions.act_window')
 
131
        result = mod_obj.get_object_reference(cr, uid, 'report_aeroo_ooo', 'action_aeroo_config_wizard')
 
132
        id = result and result[1] or False
 
133
        result = act_obj.read(cr, uid, id, context=context)
 
134
        result['res_id'] = ids[0]
 
135
        return result
128
136
 
129
137
    _defaults = {
130
138
        'config_logo': _get_image,