教程¶
小技巧
如果您是 Odoo 开发的新手,我们建议从 安装指南 开始。
学习服务器和Web框架¶
Server framework 101
This introductory tutorial is designed for complete beginners seeking to get started in Odoo development. It covers the essential aspects and key concepts of the server framework. Learn to create a simple module from scratch with step-by-step instructions and practical insights.
Discover the web framework
This tutorial will teach the basics of the web framework and how to work with Owl components by customizing the web client.
Master the web framework
Become an expert in the web framework. A large variety of features are covered such as fields, views, and even the kitten mode.
扩展你在服务器框架上的知识¶
Define module data
Define master and demo data for an Odoo module, leveraging the strengths of the CSV and XML file formats to accommodate specific data requirements.
Restrict access to data
Implement security measures to restrict access to sensitive data with the help of groups, access rights, and record rules.
Safeguard your code with unit tests
Write effective unit tests in Python to ensure the resilience of your code and safeguard it against unexpected behaviors and regressions.
Write importable modules
Write modules that define new models, fields and logic using only data files.
Reuse code with mixins
Create mixins to code features once and reuse them in multiple models.
Build PDF reports
Use QWeb, Odoo’s powerful templating engine, to create custom PDF reports for your documents.