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
978-1-78588-176-3 (9781785881763)
1785881760 (1785881760)
weitere Ausgaben werden ermittelt
  • 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 des WebShops erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok