Odoo Development Cookbook

Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 29. April 2016
  • |
  • 400 Seiten
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78588-176-3 (ISBN)
Build effective applications by applying Odoo development best practicesAbout This BookEach recipe stands by itself as much as possible, so that you can jump straight into the topics you preferThe recipes included cover all the major development areas of Odoo and the most important techniques explained through real-life projectsFrom seasoned authors, learn the tricks of becoming a productive developer with the Odoo frameworkWho This Book Is ForIf 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 LearnInstall and manage Odoo environments and instancesUse Models to define your application's data structuresAdd business logic to your applicationsImplement automated tests and debug Odoo appsUse back-end views to create a user interfaceGet to know about the access security model and internationalization featuresDevelop front-end website featuresExtend the web client with new widgets and featuresIn DetailOdoo 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 ApproachThese 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.
  • Englisch
  • Birmingham
  • |
  • Großbritannien
978-1-78588-176-3 (9781785881763)
1785881760 (1785881760)
weitere Ausgaben werden ermittelt
Holger Brunn has been a fervent open source advocate since he came in to contact with the open source market sometime in the nineties. With an academic background in philosophy and sociology, he turned his interest to generalized logic, which proves helpful in many aspects of his IT work. Turning into a professional programmer was a side effect of his hobbyist interest, combined with a part-time job with a very open-minded mentor to whom he owes a lot of gratitude.
He has programmed for ERP and similar systems in different positions since 2001. For the last eight years, he has dedicated his time to TinyERP, which became OpenERP and evolved into Odoo. Currently, he works at Therp BV in the Netherlands as a developer and is an active member of the Odoo Community Association (OCA). He's most interested in fundamental work on technical modules, but also enjoys contributing to other projects, with a focus on UI and website widgets, CRM, and knowledge management. Alexandre Fayolle started working with Linux and free software in the mid 1990s and quickly became interested in the Python programming language. Between 1999 and 2012, he helped manage Logilab, a company he cofounded, he specialized in Python development, and had the opportunity to work on projects for large companies such as EDF, Arcelor-Mittal, and GdF Suez (now Engie) using the Cubicweb framework.
He also tackled fun projects involving machine learning, natural language processing, and multi-agent systems. In 2012, he joined Camptocamp to share his expertise on Python, PostgreSQL, and Linux with the team implementing Odoo (OpenERP at the time). He currently manages projects for Camptocamp and is strongly involved in the Odoo Community Association. In his spare time, he likes to play the vibraphone in a jazz quartet, but has recently been known for writing a book about Odoo, which he hopes you'll enjoy. Daniel Reis has been working in the IT industry for over 15 years in developer, consultant, and management roles. Most of this work was at the Capgemini multinational consultancy firm, implementing proprietary business solutions for reference companies in a variety of sectors, such as industry, telecommunications, and banking. Daniel has a BSc in applied mathematics and a master's in business administration from the ISCTE Business School.
He's worked with Odoo solutions (formerly OpenERP) since 2010, and he is an active contributor in the Odoo community association projects. He has been a speaker at the Open Days annual conference and other open source events. He is the author of the first Odoo development book: Odoo Development Essentials, also by Packt Publishing.
He currently works at Securitas, the global security services company, where he has introduced Python, Odoo, and other open source solutions into the company's IT applications portfolio.
  • Cover
  • Copyright
  • Credits
  • About the Authors
  • About the Reviewers
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • 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: Creating Odoo 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
  • Using scaffold to create a module
  • Chapter 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
  • Chapter 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
  • Chapter 6: Advanced Server-Side Development Techniques
  • Introduction
  • Change the user performing an action
  • Call a method with a modified context
  • Execute raw SQL queries
  • Write a wizard to guide the user
  • Define onchange methods
  • Call onchange methods on the server side
  • Port old API code to the new API
  • Chapter 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
  • Chapter 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
  • Chapter 9: 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 10: Access Security
  • Create security groups and assign them to users
  • Add security access to models
  • Limit access to fields in models
  • Limit record access using record rules
  • Using security group to activate features
  • Chapter 11: Internationalization
  • Installing a language and configure user preferences
  • Configure language-related settings
  • Translate texts through the web client user interface
  • Exporting translation strings to a file
  • Use gettext tools to ease translations
  • Import translation files
  • Chapter 12: Automation and Workflows
  • Introduction
  • Using Kanban stages and features
  • Creating server actions
  • Adding messaging and tracking features
  • Using Python code server actions
  • Using automated actions on time conditions
  • Using automated actions on event conditions
  • Inspecting built-in workflows
  • Chapter 13: Web Server Development
  • Introduction
  • Make a path accessible from the network
  • Restrict access to web accessible paths
  • Consume parameters passed to your handlers
  • Modify an existing handler
  • Using the RPC API
  • Chapter 14: CMS Website Development
  • Introduction
  • Extending CSS and JavaScript for the website
  • Creating or modifying templates - QWeb
  • Offering snippets to the user
  • 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: Server Deployment
  • Introduction
  • Installing Odoo for production
  • Adapting the configuration file for production
  • Set up Odoo as a system service
  • Configure a reverse proxy and SSL
  • Use buildout for repeatable builds
  • Index

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)


Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.

Download (sofort verfügbar)

40,53 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung dieser Web-Seiten erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok