Loading

五、 OpenERP 输出日志

 1 import logging
 2 from openerp.osv import orm
 3 
 4 _logger = logging.getLogger(__name__)
 5 
 6 
 7 class project_task_work(orm.Model):
 8     _inherit = 'project.task.work'
 9 
10     def create(self, cr, uid, vals, context=None):
11         _logger.debug('Create a %s with vals %s', self._name, vals)
12         return super(project_task_work, self).create(cr, uid, vals, context=context)
13  

 

posted @ 2014-03-10 15:34  青岛欧姆网络科技  阅读(243)  评论(0编辑  收藏  举报