Loading

摘要: 例:context.get('variant',False)意思是如果context中不包括variant 就返回False. 阅读全文
posted @ 2014-03-10 15:48 青岛欧姆网络科技 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 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 ... 阅读全文
posted @ 2014-03-10 15:34 青岛欧姆网络科技 阅读(243) 评论(0) 推荐(0) 编辑