Odoo Development Essentials
eBook - ePub

Odoo Development Essentials

Daniel Reis

Share book
  1. 214 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Odoo Development Essentials

Daniel Reis

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Odoo Development Essentials an online PDF/ePUB?
Yes, you can access Odoo Development Essentials by Daniel Reis in PDF and/or ePUB format, as well as other popular books in Business & Business Intelligence. We have over one million books available in our catalogue for you to explore.

Information

Year
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...

Table of contents