- Odoo 11 Development Essentials(Third Edition)
- Daniel Reis
- 142字
- 2021-08-27 19:32:42
The model layer
Now that Odoo knows about our new module, let's start by adding a simple model to it.
Models describe business objects, such as an Opportunity, Sales Order, or Partner (customer, supplier, and so on). A model has a list of attributes and can also define its specific business.
Models are implemented using a Python class derived from an Odoo template class. They translate directly to database objects, and Odoo automatically takes care of that when installing or upgrading the module. The component responsible for this is the Object Relational Mapping (ORM).
Our module will be a very simple application to maintain To-Do tasks. These tasks will have a single text field for the description and a checkbox to mark them as complete. We should later add a button to remove the old, completed tasks from the To-Do list.
- PERFORM-3D基本操作與實(shí)例
- 用友ERP-U8(8.72版)標(biāo)準(zhǔn)財(cái)務(wù)模擬實(shí)訓(xùn)
- 金蝶ERP-K/3培訓(xùn)教程:財(cái)務(wù)/供應(yīng)鏈/生產(chǎn)制造(第2版)
- WPS辦公應(yīng)用四合一:文檔處理+數(shù)據(jù)分析+文稿演示+移動(dòng)辦公
- Excel 2016表格、公式、函數(shù)與圖表應(yīng)用傻瓜書
- Office 2007辦公軟件應(yīng)用立體化教程
- Final Cut Pro X基礎(chǔ)培訓(xùn)教程
- 中文版Office2016大全
- Word Excel PPT 2013:辦公應(yīng)用從入門到精通
- Excel數(shù)據(jù)處理與可視化
- 數(shù)據(jù)分析:企業(yè)的賢內(nèi)助
- PowerPoint 2016從入門到精通
- 美化你的教學(xué)PPT
- 新編五筆字型快速培訓(xùn)教程
- AI智能辦公:從訓(xùn)練ChatGPT開始