Odoo Development Cookbook
Holger Brunn Alexandre Fayolle Daniel Reis更新时间:2021-07-16 11:00:59
最新章节:Indexcoverpage
Odoo Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
eBooks discount offers and more
Preface
What this book covers
Who this book is for
What you need for this book
Sections
Conventions
Reader feedback
Customer support
Chapter 1. Installing the Odoo Development Environment
Introduction
Easy installation of Odoo from source
Managing Odoo environments using the start command
Managing Odoo server databases
Storing the instance configuration in a file
Activating the Odoo developer tools
Updating Odoo from source
Chapter 2. Managing Odoo Server Instances
Introduction
Configuring the addons path
Updating the addon modules list
Standardizing your instance directory layout
Installing and upgrading local addon modules
Installing addon modules from GitHub
Applying changes to addons
Applying and trying proposed pull requests
Chapter 3. Creating Odoo Modules
Introduction
Creating and installing a new addon module
Completing the addon module manifest
Organizing the addon module file structure
Adding models
Adding Menu Items and Views
Using scaffold to create a module
Chapter 4. Application Models
Introduction
Defining the Model representation and order
Adding data fields to a model
Using a float field with configurable precision
Adding a monetary field to a Model
Adding relational fields to a Model
Adding a hierarchy to a Model
Adding constraint validations to a Model
Adding computed fields to a Model
Exposing Related fields stored in other models
Adding dynamic relations using Reference fields
Adding features to a Model using inheritance
Using Abstract Models for reusable Model features
Using Delegation inheritance to copy features to another Model
Chapter 5. Basic Server Side Development
Introduction
Defining model methods and use the API decorators
Reporting errors to the user
Obtaining an empty recordset for a different model
Creating new records
Updating values of recordset records
Searching for records
Combining recordsets
Filtering recordsets
Traversing recordset relations
Extending the business logic defined in a Model
Extending write() and create()
Customizing how records are searched
Chapter 6. Advanced Server Side Development Techniques
Introduction
Change the user performing an action
Call a method with a modified context
Execute raw SQL queries
Write a wizard to guide the user
Define onchange methods
Call onchange methods on the server side
Port old API code to the new API
Chapter 7. Debugging and Automated Testing
Introduction
Producing server logs to help debug methods
Using the Odoo shell to interactively call methods
Using the Python debugger to trace method execution
Writing tests for your module using YAML
Writing tests for your module using Python unit tests
Running server tests
Using the Odoo Community Association maintainer quality tools
Chapter 8. Backend Views
Introduction
Adding a menu item and window action
Having an action open a specific view
Adding content and widgets to a form view
Adding buttons to forms
Passing parameters to forms and actions: Context
Defining filters on record lists: Domain
List views
Search views
Changing existing views: View inheritance
Document-style forms
Dynamic form elements using attrs
Embedded views
Kanban views
Show kanban cards in columns according to their state
Calendar views
Graph and pivot views
QWeb reports
Chapter 9. Module Data
Introduction
Using external IDs and namespaces
Loading data using XML files
Using the noupdate and forcecreate flags
Loading data using CSV files
Loading data using YAML files
Addon updates and data migration
Chapter 10. Access Security
Create security groups and assign them to users
Add security access to models
Limit access to fields in models
Limit record access using record rules
Using security group to activate features
Chapter 11. Internationalization
Installing a language and configure user preferences
Configure language-related settings
Translate texts through the web client user interface
Exporting translation strings to a file
Use gettext tools to ease translations
Import translation files
Chapter 12. Automation and Workflows
Introduction
Using Kanban stages and features
Creating server actions
Adding messaging and tracking features
Using Python code server actions
Using automated actions on time conditions
Using automated actions on event conditions
Inspecting built-in workflows
Chapter 13. Web Server Development
Introduction
Make a path accessible from the network
Restrict access to web accessible paths
Consume parameters passed to your handlers
Modify an existing handler
Using the RPC API
Chapter 14. CMS Website Development
Introduction
Extending CSS and JavaScript for the website
Creating or modifying templates - QWeb
Offering snippets to the user
Chapter 15. Web Client Development
Introduction
Creating custom widgets
Using client-side QWeb templates
Making RPC calls to the server
Writing tests for client side code
Debugging your client side code
Chapter 16. Server Deployment
Introduction
Installing Odoo for production
Adapting the configuration file for production
Set up Odoo as a system service
Configure a reverse proxy and SSL
Use buildout for repeatable builds
Index
更新时间:2021-07-16 11:00:59