官术网_书友最值得收藏!

Summary

We created a new module from the start, covering the most frequently used elements in a module: models, the three basic types of views (form, list, and search), business logic in model methods, and access security. We also learned about security access control, including record rules, and how to create web pages using web controllers and QWeb templates.

In the process, we got familiar with the module development process, which involves module upgrades and application server restarts to make the gradual changes effective in Odoo.

Always remember, when adding model fields, an upgrade is needed. When changing Python code, including the manifest file, a restart is needed. When changing XML or CSV files, an upgrade is needed; also, when in doubt, do both: restart the server and upgrade the modules.

In the next chapter, you will go deeper into models, and explore everything they have for us.

主站蜘蛛池模板: 松原市| 徐水县| 信阳市| 屯门区| 张家川| 梁平县| 新津县| 灌阳县| 盐山县| 白水县| 浦县| 郴州市| 望都县| 怀集县| 襄垣县| 梓潼县| 杭州市| 顺义区| 福州市| 荔浦县| 长武县| 静安区| 靖西县| 蒙城县| 清镇市| 孟连| 崇明县| 华安县| 乐陵市| 阜阳市| 东山县| 介休市| 循化| 景泰县| 鄢陵县| 大姚县| 临夏县| 孝感市| 多伦县| 崇州市| 江西省|