简体   繁体   English

在odoo中安装模块时出错

[英]Error during installing of module in odoo

I am currently encountering an error in Odoo. 我目前在Odoo中遇到错误。 I am using Odoo v.10 and I am looking for loan management module for FREE and I found a module in lower version which is 8 and when I'm installing the module, it gives me an error. 我正在使用Odoo v.10,正在寻找免费的贷款管理模块,我发现较低版本的模块是8,安装模块时出现错误。 Why is this? 为什么是这样?

这是日志错误

but I checked it and the model name is perfectly declared on its dunder init and the views are declared on its manifest or dunder openerp. 但是我检查了一下,并在其dunder init上完美声明了模型名称,并在其清单或dunder openerp中声明了视图。

account.loan.proof.type,型号名称

我的views.xml

我的笨拙初始化

邓德尔开瓶器

In odoo v10 using new api. 在odoo v10中,使用新的API。 So you must be upgrade that module v8 to v10. 因此,您必须将模块v8升级到v10。 As per your screen shot this code are written in V8 and using old API. 根据您的屏幕截图,此代码是用V8编写的,并使用旧的API。 In v10, osv package is not available, also i think you don't use any cr, self, context type parameter in funtion, also don't use self.pool.get() . 在v10中,osv包不可用,我也认为您在功能中不使用任何cr,self,context类型参数,也不要使用self.pool.get() You should be use self.env[] for v10. 您应该将self.env []用于v10。

you have to upgrade your addon from old api to new api. 您必须将您的插件从旧的api升级到新的api。 please read this guidelines and it will help you. 请阅读本指南,它将为您提供帮助。

odoo new api guidlines odoo新API指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM