odoo14 自定义模块 from import 报错
-
请教:
为了将自定义模块与odoo原有模块区别开来,我在另一个单独的目录(非odoo原模块所在目录)下新建了一个“myaddons”目录,结果,开发工具pycharm中代码“from odoo import models, fields, api”报错,显示
。我能想到是解释器会先从环境变量里,再从本文件的同级目录中去查找相应的模块,没有找到才会报错。但我已经在环境变量里选择了对应的解释器。不知道是何原因?该如何解决?

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login