Odoo 第一个应用

530 阅读2分钟

看了若干个文档,关于odoo创建应用的类别的文档,感受是这个领域的资料真少,质量真差。

官方文档就是odoo12 的,不太走的下来的。有人在SO上吐槽,stackoverflow.com/questions/6…

I have been struggling with Odoo ever since the start. This is probably one of the worst documented pieces of software in the world. I tried asking this on their forums but you are not allowed to post until you have x amount of Karma which you seem to only get when purchasing courses via them.

I have followed the installation tutorial for the source for Ubuntu via https://www.odoo.com/documentation/13.0/setup/install.html#id7 to the T.

I managed to start the clean vanilla version and get into the superuser mode, which by the way, was also hidden like crazy on how to enable it. Then going to the actual settings requires you to install at least one app. This makes absolutely no sense to me.

Anyway, I end up getting to the point where I found how to do those above basic things. Now I want to create a custom module following your very own tutorial: https://www.odoo.com/documentation/13.0/howtos/backend.html#.

I use the scaffold command to initiate the quick creation of a module. So far so good. But when I actually want to get it loaded into Odoo, everything seems to fall apart. I have searched for hours and I end up with the same instructions on various sources: Go to apps > Update Apps List and refresh. NOTHING happens. Absolutely NOTHING. I remove any filter and search for the name of the custom module but it is not there.

I am completely empty and am entirely stuck. The lack of documentation and the few documentation that can be found seems to not even work properly.

So before I give up on Odoo forever: How can I create a module and add it to Odoo?!

And before you ask I have tried literally everything I can think of:

-started from scratch and a clean installation well over 5 times

-I even completely ERASED UBUNTU and restarted from scratch

-I have tried to scaffold, reboot Odoo, add it manually, amend the route of the addons to the config, created my custome module in a different dir, named it differently, filled in the manifest, absolutely NOTHING works.

I will greatly appreciate if anyone can help me here but I do not have high hopes. I am at the end of my latin and patience when it comes down to Odoo.

看到一个开发者写的创建app的,也是odoo12的,给他发了odoo 13的issure,表示版本差异,还需要修改(感觉此人在福报中,996不在话下,一时间是不会修改),是等不得的。

https://github.com/ruter/Odoo-Tutorial-Demo/issues/5

odoo提供的脚手架应用,可以安装,但是看不到任何UI界面的变化,不管是菜单还是视图,都是一样。

不过也并非一无所获,有一个SO上的回答,提到了下一个免费的应用,把它安装成功,然后在看源代码来改。也就是把一个现成的app拿来当脚手架,跑起来就对了。

1) Download a free module from odoo store (to be sure there's no problem with the custom module)
2) Copy the folder that contains the manifest file to addons folder which is defined in the .conf file
3) Go to settings and activate developer mode (you must be administrator)
4) Go to apps and after activating developer mode you can update apps list (top left fourth button)
5) Now just search for you module and install it

于是在官方市场搜索了odoo version 13的免费应用,找了5-6个,发现这个还可以用,这意味着,它是跑得起来的,它不太复杂。两者缺一不可。

https://apps.odoo.com/apps/modules/13.0/document_management_system/

准备继续看次app了。