Odoo 周刊 #003
Apr 11, 2020
这是 Odoo 周刊的第 003 期，如无意外，每周一更新。为了拥有良好的阅读体验，请配合 PC 浏览器食用。
由于新冠疫情的原因，全球越来越多人的工作和学习都转移到了线上，Odoo 官方也顺势发布了一个视频，教你如何使用 Odoo 创建在线课程：
How to create your online courses with Odoo Elearning
With this covid-19 situation many of you need to use an eLearning platform, why don't you use Odoo? It's free! You're a teacher and you want to make your cou...
Odoo 官方博客，关于 13.2 版本的新内容。
有偿为 Odoo 社区写文章，这是官方推出的一个付费投稿的栏目
Write for the Community Write for the Community is an Odoo program aimed at supporting authors who write business cases, tutorials, and documentations for the community. We provide editorial support, visibility and financial revenues for the authors.
Write for Community | Odoo
Write for the Community is an Odoo program aimed at supporting authors who write business cases, tutorials, and documentations for the community. We provide editorial support, visibility and financial revenues for the authors. Odoo can be used in hundreds of different ways, and in lots of different industries.
Odoo 13.2 发行说明。
Odoo 13.2 Release Notes
Usability Lost reasons referenced in an opportunity cannot be deleted anymore. Front-end refactor Add the custom features available via the Kanban view on the List view. Usability Keep track of the different versions of your document in the Documents app. Dynamic placeholders The dynamic placeholder generator is now available for advanced users.
一个可以通过指定动作代替 Odoo 的 Many2one 字段点击默认打开记录表单行为的特性
[IMP] web: add custom action on many2one by Arcasias · Pull Request #48488 · odoo/odoo
An action attribute can now be given to a many2one field to call a custom action instead of the standard form view when clicking it in readonly. Task 2168461
Odoo 钩子 pre/post-commit/rollback 的 API 重构
[IMP] core: refactor API of pre/post-commit/rollback hooks by rco-odoo · Pull Request #48504 · odoo/odoo
The idea is that the method cr.precommit() takes care flushing all pending updates and processing pre-commit hooks.
[FW][IMP] populate database by fw-bot · Pull Request #48636 · odoo/odoo
Some use case like testing performance or upgrade scripts required a database with prefilled data, covering basic corner cases. A solution can be to create data a procedural way. This commit proposes an API to easily populate a model, usually by giving a list of possible values for each field or by giving a compute method that will be based on raw values of other fields.
通过 selection_add 添加的选项，可以指定其插入的位置，而不再是只能默认排在最后。
[MERGE] core: introduce mechanism for `selection_add` cleanup by Elkasitu · Pull Request #46325 · odoo/odoo
Context and rationale Let A and B be two different modules. A defines a required Selection field F of model M and B extends it through the selection_add argument. Create records of model M and have some of them have any of the options introduced by module B selected for field F.
一个可以和 PyWebDriver 通信的模块，使用场景如票据直接通过打印机打印等
Communicate with PyWebDriver from Odoo.
Communicate with PyWebDriver from Odoo. Common use cases: print a receipt or a label from Odoo's backend or POS directly to user's printer. drive your heavy robot from Odoo Forward to pywebdriver odoo's actions. Table of contents By default, it calls pywebdriver on " https://localhost". Use given methods to format proxy actions and execute them.