从重写的write方法调用python函数会在od中给出最大递归深度超出错误

2024-10-01 22:35:21 发布

您现在位置:Python中文网/ 问答频道 /正文

以前也问过同样的问题。但它是关于从写函数访问字段的。我的问题是调用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)

我得到的错误是


Tags: 函数代码selfenvapiifdefgroup

热门问题