更新时间:2021-07-02 14:19:38
coverpage
Title Page
Copyright and Credits
Odoo 12 Development Essentials Fourth Edition
Packt Upsell
Why subscribe?
Packt.com
Foreword
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Quick Start Using the Developer Mode
Technical requirements
Introducing the to-do list project
Basic concepts
The Odoo architecture
Odoo community versus Odoo enterprise
Odoo version policy
Preparing a basic work environment
Using an Odoo SaaS trial database
Installing Odoo on Windows
Installing Odoo using Docker containers
Other installation options
Creating a work database
Enabling the developer mode
Modifying an existing model to add a field
Adding a field to a Model
Adding a field to a form view
Creating a new Model
Configuring access control security
Security groups
Security access control lists
Security record rules
The superuser account
Creating menu items
Creating views
List views
Form views
Search views
Summary
Questions
Preparing the Development Environment
Setting up a host for the Odoo server
Installing the Windows Subsystem for Linux
Installing a Linux server
Installing Odoo from source
Installing the PostgreSQL database
Installing Odoo system dependencies
Initializing a new Odoo database
Managing Odoo databases
More server configuration options
Odoo server configuration files
Changing the listening port
Database selection options
Managing server log messages
Installing additional modules
Finding community modules
Configuring the add-ons path
Installing Odoo in a Python virtual environment
Downloading and installing add-on modules from PyPI
The server development mode
Your First Odoo Application
Overview of the library project
Creating a new addon module
Preparing the addons path
Creating the module directory and manifest
Adding an icon
Choosing a license
Installing a new module
Upgrading modules
Creating a new application
Adding the app's top menu item
Adding security groups
Adding automated tests
Testing business logic
Testing access security
The model layer
Creating the data model
Setting up access security
Adding access control security
Row-level access rules
The view layer
Adding menu items
Creating the form view
Business document form views
Adding action buttons