以前也问过同样的问题。但它是关于从写函数访问字段的。我的问题是调用python函数。。你知道吗
我的代码如下。。你知道吗
@api.multi
def write(self,values):
self.call_fun()//calling python function//
if self.pool['res.users'].has_group(self._cr, self.env.user.id, 'stpi.group_stpi_manager'):
pass
else:
if self.create_uid != self.env.user:
raise Warning('You can not able to edit this document as this is not your record')
return super(book_meeting, self).write(values)
我得到的错误是
目前没有回答
相关问题 更多 >
编程相关推荐