摘要:
例:context.get('variant',False)意思是如果context中不包括variant 就返回False. 阅读全文
摘要:
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 ... 阅读全文