~openerp-community/openerp-extra/7.0-dm

« back to all changes in this revision

Viewing changes to dm_sale/dm_sale.py

  • Committer: DSH (Open ERP)
  • Date: 2010-05-12 12:17:06 UTC
  • mto: (688.1.25 trunk)
  • mto: This revision was merged to the branch mainline in revision 689.
  • Revision ID: dsh@tinyerp.com-20100512121706-mlxvusnvjdgq549n
[FIX] view of campaign document job and job batch , write method of wi

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
            tb = sys.exc_info()
205
205
            tb_s = "".join(traceback.format_exception(*tb))
206
206
            wi_id = self.pool.get('dm.workitem').search(cr, uid, [('sale_order_id', '=', sale_order_id)])
207
 
            self.write(cr, uid, wi_id, {'state': 'error',
 
207
            self.pool.get('dm.workitem').write(cr, uid, wi_id, {'state': 'error',
208
208
                                          'error_msg': 'Exception: %s\n%s' % (str(exception), tb_s)})
209
209
            netsvc.Logger().notifyChannel('dm action - so process',
210
210
                                          netsvc.LOG_ERROR, 'Exception: %s\n%s' % (str(exception), tb_s))