Odoo Development Essentials
eBook - ePub

Odoo Development Essentials

Daniel Reis

Condividi libro
  1. 214 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Odoo Development Essentials

Daniel Reis

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Odoo Development Essentials è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Odoo Development Essentials di Daniel Reis in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Business e Business Intelligence. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2015
ISBN
9781784392796

Odoo Development Essentials


Table of Contents

Odoo Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with Odoo Development
Setting up a host for the Odoo server
Provisions for a Debian host
Creating a user account for Odoo
Installing Odoo from source
Initializing a new Odoo database
Managing your databases
A word about Odoo product versions
More server configuration options
Odoo server configuration files
Changing the listening port
Logging
Developing from your workstation
Using a Linux text editor
Installing and configuring Samba
Enabling the on-board technical tools
Activating the Technical Features
Activating the Developer mode
Installing third-party modules
Finding community modules
Configuring the addons path
Updating the module list
Summary
2. Building Your First Odoo Application
Understanding applications and modules
Modifying and extending modules
Creating a new module
Adding to the addons path
Installing the new module
Upgrading a module
Creating an application model
Adding menu entries
Creating views – form, tree, and search
Creating a form view
Formatting as a business document
Adding action buttons
Organizing forms using groups
The complete form view
Adding list and search views
Adding business logic
Setting up access control security
Row-level access rules
Adding an icon to the module
Summary
3. Inheritance – Extending Existing Applications
Adding sharing capability to the To-Do app
Road map for the user sharing features
Extending the to-do task model
Adding fields to a model
Modifying existing fields
Modifying model's methods
Extending views
Extending tree and search views
More on using inheritance to extend models
Copying features using prototype inheritance
Embedding models using delegation inheritance
Using inheritance to add social network features
Modifying data
Extending the record rules
Summary
4. Data Serialization and Module Data
Understanding external identifiers
Finding External IDs
Exporting and importing data
Exporting data
Importing data
Related records in CSV data files
Module data
Demonstration data
XML data files
The data noupdate attribute
Defining Records in XML
Setting field values
Setting values using expressions
Setting values for relation fields
Shortcuts for frequently used Models
Other actions in XML data files
Deleting records
Triggering functions and workflows
Summary
5. Models – Structuring the Application Data
Organizing application features into modules
Introducing the todo_ui module
Creating models
Model attributes
Models and Python classes
Transient and Abstract models
Inspecting existing models
Creating fields
Basic field types
Common field attributes
Reserved field names
Relations between models
Many to one relations
Many to many relations
One to many inverse relations
Hierarchical relations
Referencing fields using dynamic relations
Computed fields
Search and write on computed fields
Storing computed fields
Related fields
Model constraints
Summary
6. Views – Designing the User Interface
Window actions
Menu items
Context and domain
Session context
Domain expressions
Form views
Business views
The header status bar
The business flow pipeline
Title and subtitle
Labels for fields
Smart buttons
Organizing content in a form
Tabbed notebooks
View elements
Buttons
Fields
Relational fields
Field widgets
On-change events
Dynamic views
List views
Search views
Other types of views
Calendar views
Gantt views
Graph views
Summary
7. ORM Application Logic – Supporting Business Processes
To-do wizard
Wizard model
Wizard form
Wizard business logic
Raising exceptions
Auto-reloading code changes
Actions on the wizard dialog
Working with the server
Using relation fields
Querying models
Writing on records
Transactions and low-level SQL
Working with time and dates
Working with relation fields
Manipulating recordsets
Other recordset operations
The execution environment
Model methods for client interaction
Overriding the default methods
Model method decorators
Debugging
Summary
8. QWeb – Creating Kanban Views and Reports
Getting started with kanban board
Kanban views
Design kanban views
Priority and kanban state
Kanban view elements
The vignette kanban view
Actions in kanban views
The card kanban view
Adding QWeb dynamic content
Conditional rendering with t-if
Rendering values with t-esc and t-raw
Loop rendering with t-foreach
Dynamic attributes with t-att- prefixes
String substitution in attributes with t-attf- prefixes
Setting variables with t-set
Calling other templates with t-call
Other QWeb directives
Advanced kanban elements
Adding a kanban card option menu
Adding colors to kanban cards
Using text ellipsis for long texts
Custom CSS and JavaScript assets
Creating business reports
Installing wkhtmltopdf
QWeb report templates
Presenting data in reports
Enabling language translation in reports
Designing report content
Paper formats
Summary
9. External API – Integration with Other Systems
Setting up a Python client
Calling the Odoo API using XML-RPC
Opening an XML-RPC connection
Reading data from the server
Calling other methods
Writing a Notes desktop application
Communication layer with Odoo
Creating the GUI
Introducing the ERPpeek client
The ERPpeek API
The ERPpeek CLI
Summary
10. Deployment Checklist – Going Live
Installing Odoo
Installing from the source code
Setting up the configuration file
Setting up as a system service
Using a reverse proxy
Setting up nginx for reverse proxy
Enforcing HTTPS
Nginx optimizations
Long polling
Server and module updates
Summary
Index

Odoo Development Essentials

Copyright © 20...

Indice dei contenuti