Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #3

Open
wants to merge 1 commit into
base: v14
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 26 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,50 @@
# Odoo 14开发者指南(Cookbook)第四版
The content will be gradually moved to the GitHub open source repository

内容将逐步搬运至[GitHub开源仓库](https://github.com/iTranslateX)
Main content
Chapter 1 Installing the Odoo development environment: explains how to create a development environment for Odoo, start Odoo, create a configuration file, and enable Odoo developer tools.

## 主要内容
Chapter 2 Managing Odoo server instances: provides some useful tips for installing plugins from GitHub and explaining how to organize source code in the instance.

[第一章 安装Odoo开发环境](https://github.com/iTranslateX/odoo-cookbook/blob/v14/1.md):讲解如何为Odoo创建开发环境、启动Odoo、创建配置文件以及启用Odoo开发者工具。
Chapter 3 Creating Odoo plugin modules: explains the structure of Odoo plugin modules and provides a guide to creating a simple Odoo module from scratch.

[第二章 管理Odoo服务端实例](https://github.com/iTranslateX/odoo-cookbook/blob/v14/2.md):提供安装来自GitHub插件的一些有用贴士以及在实例中组织源代码的讲解。
Chapter 4 Application Model: focuses on the Odoo model structure and explains all field types and their properties. This chapter also includes tips on extending the existing database structure by inheriting modules.

[第三章 创建Odoo插件模块](https://github.com/iTranslateX/odoo-cookbook/blob/v14/3.md):讲解Odoo插件模块的结构并提供从零开始创建一个简单的Odoo模块的操作指南分解。
Chapter 5 Basic Server Development: explains various framework methods for performing CRUD operations in Odoo. This chapter also includes various ways to inherit and extend existing methods.

[第四章 应用模型](https://github.com/iTranslateX/odoo-cookbook/blob/v14/4.md):聚焦于Odoo模型结构,并讲解所有字段类型及它们的属性。本章还包含通过继承模块来扩展已有数据库结构的相关技巧。
Chapter 6 Managing module data: shows how to migrate data together with module code. It also explains how to write migration scripts when plugins modify data models in new releases.

[第五章 基本服务端开发](https://github.com/iTranslateX/odoo-cookbook/blob/v14/5.md):讲解Odoo中执行增删改查(CRUD)操作的各类框架方法。本章还包含继承和扩展已有方法的各种方式。
Chapter 7, Debugging the Module: Provides different strategies for debugging Odoo code and introduces the Python debugger. This chapter contains some tips for running Odoo in developer mode.

[第六章 管理模块数据](https://github.com/iTranslateX/odoo-cookbook/blob/v14/6.md):展示如何和模块代码一并进行数据的迁移。还讲解在新发行版中插件修改了数据模型时如何编写迁移脚本。
Chapter 8, Advanced Server-Side Development Tips: Explains more advanced topics in the Odoo framework. Very useful for developing wizards, SQL views, installing hooks, on-change methods, etc. This chapter also explains how to execute raw SQL queries in the database.

[第七章 调试模块](https://github.com/iTranslateX/odoo-cookbook/blob/v14/7.md):提供调试Odoo代码的不同策略并介绍了Python调试器。本章包含在开发者模式下运行Odoo的一些技巧。
Chapter 9, Backend Views: Explains how to write business views for your data models and how to call server-side methods in your views. It covers common views (list, form, and search views), as well as some more complex views (dashboards, graphs, calendars, pivot tables, etc.).

[第八章 高级服务端开发技巧](https://github.com/iTranslateX/odoo-cookbook/blob/v14/8.md):讲解ORM框架更高级的课题。对于开发向导、SQL视图、安装钩子(hook)、on-change方法等非常有用。本章还讲解了如何在数据库中执行原生SQL查询。
Chapter 10, Security: Explains how to specify who can perform what operations in your Odoo instance by creating security groups, writing access control lists to define the operations that each group can perform in a given model, and writing record-level rules when necessary.

[第九章 后端视图](https://github.com/iTranslateX/odoo-cookbook/blob/v14/9.md):讲解如何为数据模型编写业务视图以及如何在视图中调用服务端方法。涵盖了常用视图(列表、表单和搜索视图),以及一些更为复杂的视图(看板、图形、日历、透视表等)。
Chapter 11, Internationalization: Shows how language translation works in Odoo. It also explains how to install multiple languages ​​and import/export translated terms.

[第十章 权限安全](https://github.com/iTranslateX/odoo-cookbook/blob/v14/10.md/):讲解如何在Odoo实例中指定谁可以执行什么操作,方式有创建安全组、编写访问控制列表定义在给定模型中每个组可执行的操作,在必要时还可以编写记录级的规则。
Chapter 12 Automation, Workflow, Email, and Printouts: Describes the different tools available in Odoo for implementing business processes for recording. It also shows how to use server-side actions and automation rules to support business rules. This chapter also covers QWeb reports that can generate dynamic PDF documents.

[第十一章 国际化](https://github.com/iTranslateX/odoo-cookbook/blob/v14/11.md):展示Odoo中语言翻译的原理。还讲解如何安装多语言及导入/导出所翻译的词语。
Chapter 13 Web Server Development: Covers the core of Odoo's web server. It shows how to create custom URL routes to serve data at specified URLs, and how to control access to these URLs.

[第十二章 自动化、工作流、Email和打印件](https://github.com/iTranslateX/odoo-cookbook/blob/v14/12.md):描绘了Odoo中为记录实现业务流程的不同工具。还展示了如何使用服务端动作和自动化规则来对业务规则进行支持。本章还讲解可生成动态PDF文档的QWeb报告。
Chapter 14 CMS Website Development: Explains how to manage websites with Odoo. It also shows how to create and modify beautiful web pages and QWeb templates. This chapter also covers how to create dynamic web building blocks with options. It contains separate sections for managing SEO, user forms, UTM tracking, site maps, and getting visitor geolocation information. This chapter also highlights the new multisite concept in Odoo.

[第十三章 Web服务端开发](https://github.com/iTranslateX/odoo-cookbook/blob/v14/13.md):涵盖Odoo web服务端的核心内容。展示了如何创建自定义URL路由来在指定URL上提供数据服务,以及如何对这些URL进行访问控制。
Chapter 15 Web Client Development: Dives into the JavaScript side of Odoo. It covers how to create new field widgets and make RPC calls to the server. It also covers how to create completely new views from scratch. You will also learn how to create action wizards.

[第十四章 CMS网站开发](https://github.com/iTranslateX/odoo-cookbook/blob/v14/14.md):讲解如何使用Odoo管理网站。还展示了如何创建和修改美观的网页和QWeb模板。本章还包含如何创建带选项的动态网页构建代码块。它包含一些管理 SEO、用户表单、UTM追踪、网站地图和获取访客地理信息的独立小节。本章还强调了Odoo中最新的多站点概念。
Chapter 16 Odoo Web Library (OWL) introduces the new client-side framework called OWL. It covers the lifecycle of OWL components. It also includes a section on creating a field widget from scratch.

[第十五章 网页客户端开发](https://github.com/iTranslateX/odoo-cookbook/blob/v14/15.md):深入到Odoo的JavaScript部分。涵盖了如何创建新字段微件以及对服务端发送RPC调用。还包含如何从零开始创建全新的视图。读者还将学习到如何创建操作向导。
Chapter 17 In-App Purchases in Odoo: Covers all about the latest In-App Purchase (IAP) concept in Odoo. In this chapter, you will learn how to create client and service modules for IAP. You will also learn how to create IAP accounts and withdraw IAP funds from end users.

[第十六章 Odoo Web Library (OWL)](https://github.com/iTranslateX/odoo-cookbook/blob/v14/16.md),介绍名为OWL的新客户端框架。涵盖了OWL组件的生命周期。还包含从零创建字段微件的小节。
Chapter 18 Automated Test Cases: Covers how to write and execute automated test cases. This includes server-side and client-side test cases. This chapter also covers walking through test cases and setting up headless Chrome to capture videos for failed test cases.

[第十七章 Odoo的应用内购买](https://github.com/iTranslateX/odoo-cookbook/blob/v14/17.md):涵盖有关Odoo最新的应用内购买(IAP)概念的所有内容。本章中会学习到如何为IAP创建客户端和服务模块。读者还将学习到如何创建IAP账户并从终端用户提取IAP款项。
Chapter 19 Management, Deployment, and Testing with Odoo.sh: Explains how to manage, deploy, and test Odoo instances through the PaaS platform Odoo.sh. It also covers how to manage different types of instances, such as production, staging, and deployment stages. This chapter also covers various configuration options for Odoo.sh.

[第十八章 自动化测试用例](https://github.com/iTranslateX/odoo-cookbook/blob/v14/18.md):包含如何编写和执行自动化测试用例。这包括服务端、客户端测试用例。本章还包含导览测试用例以及对失败的测试用例设置headless Chrome来获取视频。
Chapter 20 Remote Procedure Calls (RPC) in Odoo: Covers different ways to connect to an Odoo instance from an external application. This chapter teaches you how to connect to Odoo and access data from an Odoo instance through XML-RPC, JSON-RPC, and the odoorpc library.

[第十九章 使用Odoo.sh管理、部署和测试](https://github.com/iTranslateX/odoo-cookbook/blob/v14/19.md):讲解如何通过PaaS平台Odoo.sh来管理、部署和测试Odoo实例。还涉及到如何管理各类实例,如生产、预发布和部署阶段。本章还包含针对Odoo.sh的各种配置选项。
Chapter 21 Performance Optimization: Explains different concepts and patterns for getting performance improvements in Odoo. This chapter covers the concepts of pre-fetching, ORM caching, and code performance testing to detect performance issues.

[第二十章 Odoo中的远程过程调用(RPC)](https://github.com/iTranslateX/odoo-cookbook/blob/v14/20.md):涵盖从外部应用连接Odoo实例的不同方式。本章教你如何通过XML-RPC、JSON-RPC和odoorpc库连接Odoo 以及从Odoo实例访问数据。
Chapter 22 POS (Point of Sale): Covers customization of the POS application. It covers customization of the user interface, adding new action buttons, modifying business flows, and extending the customer menu.

[第二十一章 性能优化](https://github.com/iTranslateX/odoo-cookbook/blob/v14/21.md):讲解用于获取Odoo中性能提升的不同概念和模式。本章包含预提取、ORM缓存和代码性能测试来监测性能问题的概念。
Chapter 23 Managing Email in Odoo: Explains how to manage email and chat tools in Odoo. It starts with configuring a mail server and then explains the mail API of the Odoo framework. This chapter also covers Jinja2 and QWeb mail templates, form views, field logging, and active chat tools.

[第二十二章 POS(销售点)](https://github.com/iTranslateX/odoo-cookbook/blob/v14/22.md):涵盖 POS 应用的自定义。包含对用户界面、添加新动作按钮、修改业务流和扩展客户菜单的自定义。

[第二十三章 在Odoo中管理Email](https://github.com/iTranslateX/odoo-cookbook/blob/v14/23.md):讲解如何在Odoo中管理email和chatter工具。通过配置邮件服务器开始,然后讲解Odoo框架的邮件API。本章还涵盖Jinja2和QWeb邮件模板、表单视图、字段日志和活动的聊天工具。

[第二十四章 管理IoT盒子](https://github.com/iTranslateX/odoo-cookbook/blob/v14/24.md):给出了最新的IoT盒子硬件的重点讲解。本章涵盖如何配置、访问和调试IoT盒子。还包含一个集成IoT盒子到你的自定义插件的示范。
Chapter 24 Managing IoT Box: Gives a high-level overview of the latest IoT box hardware. This chapter covers how to configure, access, and debug the IoT box. Also includes a demonstration of integrating the IoT Box into your custom plugin.