Odoo 11 development cookbook over 120 unique recipes to build effective enterprise and business applications
Create fast and efficient server-side applications using the latest features of Odoo v11 About This Book Get the most up-to-date guide on Odoo 11 to create custom and reusable modules Interconnect your application with other systems by implementing web APIs Understand the mechanisms powering the Odo...
Otros Autores: | , |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, England :
Packt Publishing
2018.
|
Edición: | Second edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009631638106719 |
Tabla de Contenidos:
- Cover
- Copyright and Credits
- Packt Upsell
- Contributors
- Table of Contents
- Preface
- Chapter 1: Installing the Odoo Development Environment
- Introduction
- Easy installation of Odoo from source
- Getting ready
- How to do it...
- How it works...
- Virtual environments
- PostgreSQL configuration
- Git configuration
- Downloading the Odoo source code
- Starting the instance
- There's more…
- Managing Odoo environments using the start command
- Getting ready
- How to do it...
- How it works...
- There's more…
- Managing Odoo server databases
- Getting ready
- How to do it...
- Accessing the database management interface
- Setting or changing the master password
- Creating a new database
- Duplicating a database
- Removing a database
- Backing up a database
- Restoring a database backup
- How it works...
- There's more...
- Storing the instance configuration in a file
- How to do it...
- How it works...
- Activating the Odoo developer tools
- How to do it...
- How it works...
- Updating Odoo from source
- Getting ready
- How to do it...
- How it works...
- Chapter 2: Managing Odoo Server Instances
- Introduction
- Configuring the addons path
- Getting ready
- How to do it…
- How it works…
- There's more…
- Updating the addon modules list
- Getting ready
- How to do it…
- How it works…
- Standardizing your instance directory layout
- How to do it…
- How it works…
- See also
- Installing and upgrading local addon modules
- Getting ready
- How to do it…
- From the web interface
- From the command line
- How it works…
- Addon installation
- Addon update
- There's more…
- Installing addon modules from GitHub
- Getting ready
- How to do it…
- How it works…
- There's more…
- Applying changes to addons
- Getting ready
- How to do it…
- How it works…
- See also.
- Applying and trying proposed pull requests
- Getting ready
- How to do it…
- How it works…
- There's more…
- Chapter 3: Server Deployment
- Introduction
- Installing Odoo for production use
- Getting ready
- How to do it...
- How it works...
- There's more...
- Server dimensioning
- PostgreSQL tuning
- Source code version
- Backups
- See also
- Adapting the configuration file for production
- Getting ready
- How to do it...
- How it works...
- There's more...
- Setting up Odoo as a system service
- Getting ready
- How to do it...
- How it works...
- There's more...
- Configuring a reverse proxy and SSL with nginx and Let's Encrypt
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using buildout for repeatable builds
- Getting ready
- How to do it...
- How it works...
- There's more...
- Temporary merges
- Freezing a buildout
- See also
- Using Docker to run Odoo
- Getting ready
- How to do it…
- Building a Docker image
- Running Odoo in a container
- How it works…
- There's more…
- Chapter 4: Creating Odoo Addon Modules
- Introduction
- Creating and installing a new addon module
- Getting ready
- How to do it...
- How it works...
- Completing the addon module manifest
- Getting ready
- How to do it...
- How it works...
- There's more…
- Organizing the addon module file structure
- Getting ready
- How to do it...
- How it works...
- Adding models
- Getting ready
- How to do it...
- How it works...
- Adding Menu Items and Views
- Getting ready
- How to do it...
- How it works...
- Adding Access Security
- Getting ready
- How to do it...
- How it works…
- Using scaffold to create a module
- Getting ready
- How to do it...
- How it works...
- Chapter 5: Application Models
- Introduction
- Defining the Model representation and order.
- Getting ready
- How to do it...
- How it works...
- There's more...
- Adding data fields to a Model
- Getting ready
- How to do it...
- How it works...
- There's more...
- Using a float field with configurable precision
- Getting ready
- How to do it...
- How it works...
- Adding a monetary field to a Model
- Getting ready
- How to do it...
- How it works...
- Adding relational fields to a Model
- Getting ready
- How to do it...
- How it works...
- There's more...
- Adding a hierarchy to a Model
- Getting ready
- How to do it...
- How it works...
- There's more...
- Adding constraint validations to a Model
- Getting ready
- How to do it...
- How it works...
- Adding computed fields to a Model
- Getting ready
- How to do it...
- How it works...
- Exposing related fields stored in other Models
- Getting ready
- How to do it...
- How it works...
- There's more...
- Adding dynamic relations using Reference fields
- Getting ready
- How to do it...
- How it works...
- Adding features to a Model using inheritance
- Getting ready
- How to do it...
- How it works...
- There's more...
- Using abstract Models for reusable Model features
- Getting ready
- How to do it...
- How it works...
- There's more...
- Using delegation inheritance to copy features to another Model
- Getting ready
- How to do it...
- How it works...
- There's more...
- Chapter 6: Basic Server-Side Development
- Introduction
- Defining model methods and using the API decorators
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Reporting errors to the user
- Getting ready
- How to do it...
- How it works...
- There's more...
- Obtaining an empty recordset for a different model
- Getting ready
- How to do it...
- How it works...
- See also
- Creating new records
- Getting ready.
- How to do it...
- How it works...
- There's more…
- Updating values of recordset records
- Getting ready
- How to do it...
- How it works...
- There's more...
- Searching for records
- Getting ready
- How to do it...
- How it works...
- There's more...
- Combining recordsets
- Getting ready
- How to do it...
- How it works...
- There's more...
- Filtering recordsets
- Getting ready
- How to do it...
- How it works...
- There's more...
- Traversing recordset relations
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Extending the business logic defined in a Model
- Getting ready
- How to do it...
- How it works...
- There's more...
- Extending write() and create()
- Getting ready
- How to do it...
- How it works...
- There's more...
- Customizing how records are searched
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Chapter 7: Module Data
- Introduction
- Using external IDs and namespaces
- How to do it...
- How it works...
- There's more...
- See also
- Loading data using XML files
- How to do it...
- How it works...
- There's more...
- Using the noupdate and forcecreate flags
- How to do it...
- How it works...
- There's more...
- See also
- Loading data using CSV files
- How to do it...
- How it works...
- There's more...
- Loading data using YAML files
- How to do it...
- How it works...
- There's more...
- See also
- Addon updates and data migration
- How to do it...
- How it works...
- There's more...
- See also
- Chapter 8: Debugging and Automated Testing
- Introduction
- Producing server logs to help debug methods
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using the Odoo shell to interactively call methods
- Getting ready
- How to do it.
- How it works...
- Using the Python debugger to trace method execution
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Writing tests for your module using Python unit tests
- Getting ready
- How to do it...
- How it works...
- There's more...
- Running server tests
- Getting ready
- How to do it...
- How it works...
- There's more...
- Using the Odoo Community Association maintainer quality tools
- Getting ready
- How to do it...
- How it works...
- There's more...
- Using Pylint to check your code
- Using Flake8 to check your code
- Chapter 9: Advanced Server-Side Development Techniques
- Introduction
- Changing the user performing an action
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Calling a method with a modified context
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Executing raw SQL queries
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Writing a wizard to guide the user
- Getting ready
- How to do it...
- How it works...
- There's more...
- Using the context to compute default values
- Wizards and code reuse
- Redirecting the user
- Defining onchange methods
- Getting ready
- How to do it...
- How it works...
- There's more...
- Calling onchange methods on the server side
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Defining a model based on a SQL view
- Getting ready
- How to do it...
- How it works...
- There's more...
- Chapter 10: Backend Views
- Introduction
- Adding a menu item and window action
- How to do it...
- How it works...
- There's more...
- See also
- Having an action open a specific view
- How to do it...
- How it works...
- ir.actions.act_window.view.
- Adding content and widgets to a form view.