Odoo 11 Development Cookbook - Second Edition

Create fast and efficient server-side applications using the latest features of Odoo v11
Preview in Mapt

Odoo 11 Development Cookbook - Second Edition

Alexandre Fayolle, Holger Brunn

1 customer reviews
Create fast and efficient server-side applications using the latest features of Odoo v11

Quick links: > What will you learn?> Table of content> Product reviews

Mapt Subscription
FREE
$29.99/m after trial
eBook
$20.00
RRP $39.99
Save 49%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$20.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Odoo 11 Development Cookbook - Second Edition Book Cover
Odoo 11 Development Cookbook - Second Edition
$ 39.99
$ 28.00
Embedded Linux Development Using Yocto Project Cookbook - Second Edition Book Cover
Embedded Linux Development Using Yocto Project Cookbook - Second Edition
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $40.98
Add to Cart

Book Details

ISBN 139781788471817
Paperback470 pages

Book Description

Odoo is a full-featured open source ERP with a focus on extensibility. The flexibility and sustainability of open source are 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. Version 11 offers better usability and speed: a new design (as compared to the current Odoo Enterprise version) and a mobile interface.

The book starts by covering Odoo installation and administration and Odoo Server deployment. It then delves into the implementation of Odoo modules, the different inheritance models available in Odoo. You will then learn how to define access rules for your data; how to make your application available in different languages; how to expose your data models to end users on the back end and on the front end; and how to create beautiful PDF versions of your data.

By the end of the book, you will have a thorough knowledge of Odoo and will be able to build effective applications by applying Odoo development best practices

Table of Contents

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: Server Deployment
Introduction
Installing Odoo for production use
Adapting the configuration file for production
Setting up Odoo as a system service
Configuring a reverse proxy and SSL with nginx and Let's Encrypt
Using buildout for repeatable builds
Using Docker to run Odoo
Chapter 4: Creating Odoo Addon 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
Adding Access Security
Using scaffold to create a module
Chapter 5: 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 6: Basic Server-Side Development
Introduction
Defining model methods and using 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 7: 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 8: 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 Python unit tests
Running server tests
Using the Odoo Community Association maintainer quality tools
Chapter 9: Advanced Server-Side Development Techniques
Introduction
Changing the user performing an action
Calling a method with a modified context
Executing raw SQL queries
Writing a wizard to guide the user
Defining onchange methods
Calling onchange methods on the server side
Defining a model based on a SQL view
Chapter 10: 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
Showing kanban cards in columns according to their state
Calendar and gantt views
Graph and pivot views
Chapter 11: Access Security
Creating security groups and assigning them to users
Adding security access to models
Limiting access to fields in models
Limiting record access using record rules
Using security groups to activate features
Chapter 12: Internationalization
Installing a language and configuring user preferences
Configuring language-related settings
Translating texts through the web client user interface
Exporting translation strings to a file
Using gettext tools to ease translations
Importing translation files into Odoo
Chapter 13: Automation, Workflows, Emails, and Printouts
Introduction
Using Kanban stages and features
Creating server actions
Using Python code server actions
Using automated actions on time conditions
Using automated actions on event conditions
Adding messaging and tracking features
Email templates
QWeb-based PDF reports
Producing LibreOffice-based reports with Py3O
Chapter 14: Web Server Development
Introduction
Making a path accessible from the network
Restricting access to web accessible paths
Consuming parameters passed to your handlers
Modifying an existing handler
Using the RPC API
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: CMS Website Development
Introduction
Extending CSS and JavaScript for the website
Creating or modifying templates – QWeb
Offering snippets to the user

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
  • Add automated tests and learn how to debug Odoo apps
  • Learn about the access security model and internationalization features
  • Customize websites built with Odoo, by writing your own templates and providing new snippets for use in the website builder
  • Extend the web client with new widgets and make RPC calls to the server

Authors

Table of Contents

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: Server Deployment
Introduction
Installing Odoo for production use
Adapting the configuration file for production
Setting up Odoo as a system service
Configuring a reverse proxy and SSL with nginx and Let's Encrypt
Using buildout for repeatable builds
Using Docker to run Odoo
Chapter 4: Creating Odoo Addon 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
Adding Access Security
Using scaffold to create a module
Chapter 5: 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 6: Basic Server-Side Development
Introduction
Defining model methods and using 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 7: 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 8: 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 Python unit tests
Running server tests
Using the Odoo Community Association maintainer quality tools
Chapter 9: Advanced Server-Side Development Techniques
Introduction
Changing the user performing an action
Calling a method with a modified context
Executing raw SQL queries
Writing a wizard to guide the user
Defining onchange methods
Calling onchange methods on the server side
Defining a model based on a SQL view
Chapter 10: 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
Showing kanban cards in columns according to their state
Calendar and gantt views
Graph and pivot views
Chapter 11: Access Security
Creating security groups and assigning them to users
Adding security access to models
Limiting access to fields in models
Limiting record access using record rules
Using security groups to activate features
Chapter 12: Internationalization
Installing a language and configuring user preferences
Configuring language-related settings
Translating texts through the web client user interface
Exporting translation strings to a file
Using gettext tools to ease translations
Importing translation files into Odoo
Chapter 13: Automation, Workflows, Emails, and Printouts
Introduction
Using Kanban stages and features
Creating server actions
Using Python code server actions
Using automated actions on time conditions
Using automated actions on event conditions
Adding messaging and tracking features
Email templates
QWeb-based PDF reports
Producing LibreOffice-based reports with Py3O
Chapter 14: Web Server Development
Introduction
Making a path accessible from the network
Restricting access to web accessible paths
Consuming parameters passed to your handlers
Modifying an existing handler
Using the RPC API
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: CMS Website Development
Introduction
Extending CSS and JavaScript for the website
Creating or modifying templates – QWeb
Offering snippets to the user

Book Details

ISBN 139781788471817
Paperback470 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Embedded Linux Development Using Yocto Project Cookbook - Second Edition Book Cover
Embedded Linux Development Using Yocto Project Cookbook - Second Edition
$ 35.99
$ 25.20
Learn iOS 11 Programming with Swift 4 - Second Edition Book Cover
Learn iOS 11 Programming with Swift 4 - Second Edition
$ 39.99
$ 28.00
IPython Interactive Computing and Visualization Cookbook - Second Edition Book Cover
IPython Interactive Computing and Visualization Cookbook - Second Edition
$ 27.99
$ 19.60
ServiceNow Cookbook - Second Edition Book Cover
ServiceNow Cookbook - Second Edition
$ 35.99
$ 25.20
Learning AWS - Second Edition Book Cover
Learning AWS - Second Edition
$ 35.99
$ 25.20
Salesforce CRM Admin Cookbook - Second Edition Book Cover
Salesforce CRM Admin Cookbook - Second Edition
$ 39.99
$ 28.00