Book description
Build effective applications by applying Odoo development best practices
About This Book
- Each recipe stands by itself as much as possible, so that you can jump straight into the topics you prefer
- The recipes included cover all the major development areas of Odoo and the most important techniques explained through real-life projects
- From seasoned authors, learn the tricks of becoming a productive developer with the Odoo framework
Who This Book Is For
If you are a Python developer who wants to learn or consolidate your Odoo development skills, then this book is for you! Some experience with the JavaScript programming language and web development is required to fully benefit from the front-end chapters.
What You Will Learn
- Install and manage Odoo environments and instances
- Use Models to define your application's data structures
- Add business logic to your applications
- Implement automated tests and debug Odoo apps
- Use back-end views to create a user interface
- Get to know about the access security model and internationalization features
- Develop front-end website features
- Extend the web client with new widgets and features
In Detail
Odoo is a full-featured open source ERP with a focus on extensibility. The flexibility and sustainability of open source is also a key selling point of Odoo. It is built on a powerful framework for rapid application development, both for back-end applications and front-end websites.
The book starts by covering Odoo installation and administration, and provides a gentle introduction to application development. It then dives deep into several of the areas that an experienced developer will need to use. You'll learn implement business logic, adapt the UI, and extend existing features.
Style and Approach
These practical and easy-to-follow recipes are presented step-by-step, with dozens of hands-on recipes to boost your Odoo skills. This book can also be used as a reference guide for your daily work.
Table of contents
-
Odoo Development Cookbook
- Table of Contents
- Odoo Development Cookbook
- Credits
- About the Authors
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Installing the Odoo Development Environment
- 2. Managing Odoo Server Instances
- 3. Creating Odoo Modules
-
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
-
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
- 6. Advanced Server Side Development Techniques
-
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
-
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
- 9. Module Data
- 10. Access Security
- 11. Internationalization
- 12. Automation and Workflows
- 13. Web Server Development
- 14. CMS Website Development
- 15. Web Client Development
- 16. Server Deployment
- Index
Product information
- Title: Odoo Development Cookbook
- Author(s):
- Release date: April 2016
- Publisher(s): Packt Publishing
- ISBN: 9781785883644
You might also like
book
Odoo 12 Development Cookbook - Third Edition
Build customized solutions for your business using the latest features of Odoo 12 and Python Key …
book
Odoo 10 Implementation Cookbook
Comprehensive tasks covering Odoo 10 in the right way About This Book Reduce implementation costs and …
book
Odoo 11 Development Cookbook - Second Edition
Create fast and efficient server-side applications using the latest features of Odoo v11 About This Book …
book
Odoo 10 Development Essentials
Fast-track your development skills to build powerful Odoo 10 business applications About This Book Get the …