Odoo文档

本文简要介绍Odoo中的字段含义、函数参数及文件作用,重点在于模块属性和安全配置。通过注释代码的方式,解释了xml文件在定义模块信息、菜单结构和权限组中的应用。同时提到了其他学习资源,帮助读者了解Odoo的菜单结构和安全设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我现在先以文件为主导的方式在学习过程中试着逐步解释说明odoo中涉及到的字段的含义,函数的参数含义作用和文件的作用等等。增强动手能力。本文不对具体代码的逻辑进行过多探讨,仅对属性进行说明。我会在学习过程中不断的添加之前没遇到过的东西,不全的请谅解或指正。
我现在水平十分初级,我会加入很多我自己的理解,如果有错误或者是没说到位的地方,请一定指正,万分感谢。

本文参考Alan Hou翻译的最好用的免费ERP系统Odoo 12开发手册写成。

https://alanhou.org/odoo-12-development/
其他网站资源
https://webkul.com/blog/working-with-xml-data-in-odoo/

  1. __manifest__.py
    __manifest__.py就是一个声明文件,在他里面会包含许多模块层面的信息,包括名称、介绍和作者等等描述性信息,还包括一些模块中要用到的文件的声明,告诉odoo这些文件在哪,还有模块的可用或者不可用等等的一些属性都可以在这里定义。
    下面以一段代码加注释的方式介绍这一文件里用到的内容。
    'name': 'Module Name',  # 插件模块标题字符串
    'description': 'What the module do.',  # 功能描述长文件,通常为RST格式
    'author': 'Starwaves',  # 作者姓名,本处为一个字符串,可以是逗号分隔的一系列姓名
    'depends': ['base'],  # 一个依赖插件模块列表,在模块安装时会先安装这些插件
    'application': True,  # 一个布尔型标记,代表模块是否在应用列表中以 app 展现
    'data': [  # 声明添加安装或更新时需要加载的模块列表
        'security/library_security.xml',
        'security/ir.model.access.csv',
        'views/library_menu.xml',  
        'views/book_view.xml',
        'views/book_list_template.xml',
    ],
    'demo': [  # 还没搞清楚
        'data/res.partner.csv',
        'data/library.book.csv',
        'data/book_demo.xml',
    ], }
# 在真实场景中,建议也同时使用其它属性名,因它们与 Odoo 的应用商店有关:
# 这些属性名我暂时没有用到,如果用到了会加进来
# summary:显示为模块副标题的字符串
# version::默认为1.0,应遵守版本号规则。建议在模块版本号前加上 Odoo 版本,如12.0.1.0
# license::默认为LGPL-3
# website:了解模块更多信息的 URL,可以帮助人们查看更多文档或提供文件 bug 和建议的跟踪
# category::带有模块功能性分类字符串,缺省为Uncategorized。
#            已有分类可通过安全组表单(位于Settings > Users & Companies > Groups)
#            的 Application字段下拉列表查看(需开启调试模式)
# 还有以下描述符键:
# installable:默认为 True,但可以通过设置为 False 来禁用模块
Learn how to use Odoo, a resourceful, open source business application platform designed to transform and modernize your business About This Book Configure, manage, and customize Odoo to fit the needs of your business Learn about the new Odoo 8 website builder and e-commerce features that are seamlessly integrated with Odoo's business applications Perform step-by-step configurations of the most important Odoo applications using real-world examples Who This Book Is For This book is perfect for people who have never used Odoo and for those who would like to learn about more advanced features such as creating your own custom modules. In order to get the most out of this book, you should be comfortable with downloading and installing software and understand basic business concepts such as sales, purchasing, inventory management, and basic accounting. What You Will Learn Configure a functioning customer relationship management system Set up a purchasing and receiving system for your company that allows you to track inventory, costs, and profit Implement manufacturing operations and processes using real-world examples that you can put to use in your own company Discover the capabilities of Odoo's financial accounting and reporting features Integrate powerful human resource applications that simplify the collection and management of employee information Utilize Odoo's full featured project management application to organize tasks and track time and costs associated with billable projects Customize Odoo without writing a line a code In Detail Odoo continues to gain momentum throughout the world in regards to providing the best platform for open source ERP installations. Now with Odoo 8, you have access to a powerful website builder, integrated e-commerce features, and a fast-growing community to help transform and modernize your business. With this practical guide, you will cover the essential modules to get Odoo up and running for your company. After installing Odoo, you will use its sales management application to enter quotes, create sales orders, and invoice customers. You will then learn how to integrate the CRM application to manage your leads and convert them into lucrative opportunities and sales. Next, you will set up your own purchase management system, assigning products to suppliers and tracking orders with the new warehouse management and routing system. Finally, you will learn how to use analytics to track project expenses and keep your accounts simple and easy to maintain and build an Odoo module to extend its functionality and make it work for you. Working with Odoo covers all the core installation and usage functionalities of this popular tool, helping you to fully implement a working ERP system through practical, advanced, real-world examples. Style and approach This book is a practical guide that uses real-world examples to teach you how to implement Odoo into your business. Table of Contents Chapter 1: Setting Up Odoo Chapter 2: Installing Your First Application Chapter 3: Exploring Customer Relationship Management in Odoo Chapter 4: Purchasing with Odoo Chapter 5: Making Goods with Manufacturing Resource Planning Chapter 6: Configuring Accounting Finance Chapter 7: Administering an Odoo Installation Chapter 8: Implementing the Human Resources Application Chapter 9: Understanding Project Management Chapter 10: Creating Advanced Searches and Dashboards Chapter 11: Building a Website with Odoo Chapter 12: Implementing E-Commerce with Odoo Chapter 13: Customizing Odoo for Your Business Chapter 14: Modifying Documents and Reports Chapter 15: Understanding Workflows Chapter 16: Discovering Custom Odoo Modules Chapter 17: Locating Additional doo Resources
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值