在开发过程中由于使用到在当前模型或者其他模型中需要调用到另外的函数,记录下代码
self.env['model'].start_api(self)
model:模型名字
start_api(self):模型下的函数名称