跳至內容
Odoo 選單
  • 登入
  • 免費試用
  • 應用程式
    財政
    • 會計
    • 發票
    • 開支報銷
    • 試算表 (BI)
    • 文件管理
    • 電子簽名
    銷售
    • 客戶關係
    • 銷售
    • POS 銷售點管理 - 零售
    • POS 銷售點管理 - 餐廳
    • 訂閱
    • 租賃
    網站
    • 網站製作
    • 電子商務
    • 網誌
    • 討論區
    • 線上客服
    • 網上學習
    供應鏈
    • 庫存
    • 製造管理
    • 產品生命周期
    • 採購
    • 保養維護
    • 品質管理
    人力資源
    • 員工管理
    • 招聘
    • 休假
    • 工作表現評核
    • 內部推薦
    • 車隊管理
    市場推廣
    • 社交媒體推廣
    • 電郵推廣
    • 短訊營銷
    • 活動
    • 自動化推廣
    • 網上調查
    服務
    • 專案管理
    • 工時管理
    • 外勤服務管理
    • 技術支援
    • 工作規劃
    • 預約管理
    生產力
    • 聊天
    • 批核
    • 物聯網
    • VoIP
    • 知識庫
    • WhatsApp
    第三方應用程式 Odoo Studio Odoo 雲端平台
  • 行業
    零售
    • 書店
    • 服裝店
    • 家具店
    • 食品雜貨店
    • 五金店
    • 玩具店
    餐飲及款待
    • 酒吧及酒館
    • 餐廳
    • 快餐
    • 賓館
    • 飲品分銷商
    • 酒店
    房地產
    • 地產代理公司
    • 建築師事務所
    • 建造業
    • 物業管理
    • 園藝
    • 業主聯會
    顧問服務
    • 會計公司
    • Odoo 合作夥伴
    • 市場推廣公司
    • 律師事務所
    • 人才招募
    • 審計及認證
    製造管理
    • 紡織
    • 金屬
    • 家具
    • 食品
    • 啤酒廠
    • 企業禮品
    保健與健身
    • 運動俱樂部
    • 眼鏡店
    • 健身中心
    • 健康從業人員
    • 藥房
    • 髮型屋
    技術行業
    • 雜工
    • IT 硬體與支援
    • 太陽能系統
    • 鞋匠
    • 清潔服務
    • 暖通空調服務
    其他
    • 非牟利組織
    • 環境保護機構
    • 廣告板租賃
    • 攝影服務
    • 自行車租賃
    • 軟體經銷商
    瀏覽所有行業
  • 社群
    學習
    • 教學影片
    • 使用說明
    • 認證
    • 培訓
    • 網誌
    • Podcast
    增強教學效能
    • 教育計劃
    • Scale Up! 商業遊戲
    • 到訪 Odoo
    取得軟件
    • 下載
    • 版本對照表
    • 版本說明
    合作
    • GitHub
    • 討論區
    • 活動
    • 翻譯
    • 成為合作夥伴
    • 合作夥伴服務
    • 登記你的會計服務公司
    獲取服務相關資料
    • 尋找合作夥伴
    • 尋找會計服務
    • 預約顧問諮詢
    • 安裝及推行服務
    • 客戶案例
    • 支援
    • 軟件升級
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    預約示範
  • 定價
  • 技術支援

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • 客戶關係
  • e-Commerce
  • 會計
  • 庫存
  • PoS
  • 專案管理
  • MRP
All apps
只限註冊用戶才可與社群互動。
所有帖文 人 獎章
標籤 (查看所有)
odoo accounting v14 pos v15
關於此討論區
只限註冊用戶才可與社群互動。
所有帖文 人 獎章
標籤 (查看所有)
odoo accounting v14 pos v15
關於此討論區
支援

Is Odoo well documented for developers?

訂閱

此帖文有活動時,接收通知

此問題已被標幟
documentationodooodoo8
5 回覆
13531 瀏覽次數
頭像
Pepiño

Hi Odoo developers,

First of all, I'm a newbie in Odoo 8 development, but after I had read all tutorials and something in the Reference section from the Odoo developers webpage, I feel that the Odoo framework is not well documented and only a few simple examples are provided.

Secondly, If I study the source code of the core modules in Odoo (eg. Events) I can't understand a lot of things. Where should I look for to understand this?.
Also, in my opinion, the code in models (.py files) and xml files doesn't have many comments to understand it. How to know the execution flow whether there are a lot of files involved in the process?.

Also, many modules in Odoo 8 are implemented using the OpenERP v7 framework. Then, apart from studying the Odoo 8 framework, I have to study the OpenERP v7 framework too. It's annoying.
If a want to develop a new module in Odoo 8 extending the capabilities of a module incorporated in Odoo, I have to know how it works the OpenERP framework to understand the source code of the extended module.

Thirdly, where is it explained the arquitecture of the files from the Odoo core. A few hours ago, I guessed that a method to resize images exists in tools module, but I don't understand neither how it works nor the arguments to pass it.
Where is this kinds of things documented?.

It's only mi personal opinion as a newbie, but I think that, when a developer is a novice in something, having a good documentation and a well-documented source code is absolutely necessary to implement advanced functionalities. 

And my question. How did you learn to do complicated things to develop modules in Odoo 8?.

5
頭像
捨棄
頭像
Yenthe Van Ginneken (Mainframe Monkey)
最佳答案

Hi Eduardo,

About 7 months ago I was in the position where you are now and I would like to share my knowledge / opinion on this, since this costed me a lot of time.

As for the documentation, you're absolutely right. There is (very) little good documentation and the documentation that is available is about basic subjects that we could figure out anyway. More advanced documentation isn't really there, except for a very broad description. That being sad, you will absolutely miss good documentation for Odoo but you also learn to work with it and figure it out yourself while you advance.

The best way to understand the source code and learn how Odoo works is to dive in. Activate your technical features and tinker around with things. Look at on_change events, domains, button events,.. and try to find them. You will find that everything has a structure in Odoo and that a lot in Odoo works with inheritance. There are sadly very little comments on code so you really have to figure things out yourself..

As for a lot of the modules being coded in V7 API and not in V8, you're correct, this is true. Odoo is slowly migrating its modules from the V7 API to V8 but this takes time. Current developers in Odoo use a lot of the V7 API since there is little documentation and there are barely any samples. When you look a bit further you'll find out that most of the things in V7 and V8 API are pretty common though. Especially for creating fields/models. If you can learn the API for V8 directly but if you're new and still need to learn a lot you'll find a lot more samples in V7 API.

The Odoo arquitechture isn't really very well explained anywhere but the most important things are explained here. There is in fact a tool to resize images and I've written a guide about how to use it on this blog article.

While there isn't a lot of good documentation (atleast not from Odoo itself) Stephen wrote a thread which contains a lot of blogs and guides, which you can find here. I personally learned a lot by simply looking at existing modules and tracking where everything goes. When you have technical features activated you can see which field is in which module and which model it uses. There can be an on_change, which then shows the exact name of the function and from there on you can find the rest of the code. In my blog I try to create tutorials which explain more technical things in detail, to make it easier for new beginners so perhaps this can help you too. You can find my blog at http://www.odoo.yenthevg.com/.

I hope this answer helps you in a good way and that you've learned something from it. Best of luck!

5
頭像
捨棄
Pepiño
作者

Thanks for sharing your experience with me @Yenthe. You wrote a very good answer to my question, and I appreciate it. Thanks for the links that you shared. I had already been following your blog before I wrote this post in the Odoo forum. I hope every module are migrated to new Odoo API as soon as possible, because I would to be focused on the new API and not in the OpenERP API. Also, I hope Odoo staff improves the official documentation and comments in a better way the source code, both in the Odoo core and Odoo modules.

Yenthe Van Ginneken (Mainframe Monkey)

Great to hear that the answer has helped you! Its good to hear that 'new' people are finding my blog, since that was part of the point of my blog, to help newcomers. I don't think there will be any comments added to the code and sadly thats a downside. I have no idea why they don't though, it improves speed a lot. As for the Odoo V8 API, you'll slowly see more and more code in V8. If you have any specific questions just start a new thread, plenty of helping people here :)

頭像
Aitor Bouzas
最佳答案

Hi Eduardo,

Maybe you already found out where the official documentation is, but maybe other people reading this post didn't... As you say, the documentation is very poor, but in terms of making a new module it's not so bad if you search well. Here you have the official documentation I use for both API's. This is the Old Api Documentation I use. And this is the New Api Documentation, it is a general documentation for Odoo 8 I use.

Anyway, you're very right about that it is very hard to dive into the source code, because the OpenERP core documentation is just null... But diving this forum and trying things into a test enviroment will make you understand a little bit.

I don't know if you know this, but if you want to track the modules,actions, fields, methods... from OpenERP, you can click on top right corner of the screen (over your user's name) -> about Odoo -> Activate developer's mode. This will let you know the names of the fields in the database (and the modules code) as you get your pointers over them. Also, with technical features activated under the Permissions  of the user you can access to Settings -> Technical -> Database Structure that is very useful to see the classes fields... And some other things that maybe will interest you at some point.

Hope it helped!


2
頭像
捨棄
Pepiño
作者

Thanks for your answer @Aitor. I have already read the new Odoo API documentation and the official tutorials, but I would like to see more complicated examples in them. If you read the Reference section in the new Odoo documentation (ORM, views, Javascript, etc), you will realize that only a few examples are provided. It's not enough to understand it and start doing more complicated things in Odoo. Thanks for your advice about Odoo developer's mode and the Technical Features menu. I have already been using them, but at the end you will need to dive into the Odoo's source code, and at this point you will find the most part of the sorce code uncommented. For instance, a few days ago I was trying the form view to create a new product, and I saw two radio button fields in it. When I clicked on one of them, a new section in the form appeared dinamically, and when I clicked on the other button, another different section was displayed deleting the previous one. I spent an hour dive into the product model's source code (python, views, etc) trying to guess how it works, and I couldn't understand this behaviour of the form.

頭像
Siobhan
最佳答案

Hello Eduardo

I am also very new to Odoo and through the video subscription http://www.odooclass.com/ (ERP7) and Odoo development Essentials book by Daniel Reis I got a good feel for creating modules. This is also a fantastic place to get help and support. Another useful site is https://www.odoo.com/documentation/8.0/tutorials.html. It give a good understanding of Odoo 8. 

None of these will get you up to expert level quickly but there are a very good start.

Hope it helps

2
頭像
捨棄
Pepiño
作者

Thanks for your answer @Siobhan. I bought the Odoo development Essentials book by Daniel Reis a few weeks ago, and after I have read it, I can say that it's a great book, but it doesn't explain more advanced concepts, and this is that I need now. But without this book, I couldn't have understood many things explained in the official Odoo documentation. Again, the tutorials from the official Odoo documentation only cover the basics. I would like to see the videos from http://www.odooclass.com, but for now I haven't enough money to buy them.

頭像
David Bertha
最佳答案

Core modules are poorly documented. When your goal is to add some functionalities to an existing module, it can be very hard to follow the data processing. My advice : use an IDE with all the odoo code loaded, because you'll have to do a search on each function, button, view,... name you'll find. I learned almost everything I know that way.

1
頭像
捨棄
頭像
Joey
最佳答案

Hi Eduardo, how about your ODOO level now ? I am at your position at 2015. 

0
頭像
捨棄
Niyas Raphy (Walnut Software Solutions)

Its far better now a days with lot of different materials available. Check this out: https://www.youtube.com/watch?v=DJyPx5u6sd0&list=PLqRRLx0cl0homY1elJbSoWfeQbRKJ-oPO

喜歡這則討論?不要只閱讀,加入發表意見吧!

今天就建立帳戶,享受獨家功能,與我們精彩的社群互動!

註冊
相關帖文 回覆 瀏覽次數 活動
Default value for a field not works
odoo odoo8
頭像
頭像
1
7月 16
7165
How to integrate facebook and twitter in odoo
odoo odooV8 odoo8
頭像
頭像
頭像
2
5月 25
11009
Why am I receiving this debug message on the logger?: "openerp.modules.registry: Multiprocess signaling check". Could this be the reason of the instance slowness?
nginx odoo odoo8
頭像
頭像
頭像
3
11月 20
10552
I Need to generate and print barcode label of a product in odoo 8 what shall i do???
openerp7 odoo odoo8
頭像
頭像
1
5月 16
98
Multiple e-commerce shops in Odoo8?
ecommerce odoo odoo8
頭像
0
2月 16
4004
社群
  • 教學影片
  • 使用說明
  • 討論區
開源
  • 下載
  • GitHub
  • Runbot 測試環境
  • 翻譯
服務
  • odoo.sh 網頁寄存
  • 支援
  • 升級
  • 自訂功能開發
  • 教育及培訓
  • 尋找會計服務
  • 尋找合作夥伴
  • 成為合作夥伴
關於我們
  • 關於 Odoo 公司
  • 品牌資產
  • 聯絡我們
  • 招聘
  • 活動
  • Podcast
  • 網誌
  • 客戶
  • 法律 • 私隱政策
  • 安全性
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo 是一套開放源碼的商業管理系統,涵蓋你公司全部的營運需要,包括客戶關係管理(CRM)、電子商務、會計、庫存管理、POS(銷售點管理)、專案管理等應用程式。

Odoo 的獨特價值是非常簡單易用,同時將不同應用程式完美整合。

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now