万本电子书0元读

万本电子书0元读

顶部广告

Odoo Development Cookbook电子书

售       价:¥

14人正在读 | 0人评论 9.8

作       者:Holger Brunn

出  版  社:Packt Publishing

出版时间:2016-04-01

字       数:358.5万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Build effective applications by applying Odoo development best practices About This Book Each recipe stands by itself as much as possible, so that you can jump straight into the topics you prefer The recipes included cover all the major development areas of Odoo and the most important techniques explained through real-life projects From seasoned authors, learn the tricks of becoming a productive developer with the Odoo framework Who This Book Is For If 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 Learn Install and manage Odoo environments and instances Use Models to define your application's data structures Add business logic to your applications Implement automated tests and debug Odoo apps Use back-end views to create a user interface Get to know about the access security model and internationalization features Develop front-end website features Extend the web client with new widgets and features In Detail Odoo 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 Approach These 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.
目录展开

Odoo Development Cookbook

Table of Contents

Odoo Development Cookbook

Credits

About the Authors

About the Reviewers

www.PacktPub.com

eBooks, discount offers, and more

Why subscribe?

Preface

What this book covers

Who this book is for

What you need for this book

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

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

Access the Database Management interface

Set or change 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 is more...

Storing the instance configuration in a file

How to do it...

How it works...

There is more...

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

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…

3. Creating Odoo 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…

Using scaffold to create a module

Getting ready

How to do it…

How it works…

There's more…

4. 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…

5. Basic Server Side Development

Introduction

Defining model methods and use the API decorators

Getting ready

How to do it…

How it works…

There's more…

Hiding methods from the RPC interface

The @api.one decorator

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

6. Advanced Server Side Development Techniques

Introduction

Change the user performing an action

Getting ready

How to do it…

How it works…

There is more…

See also

Call a method with a modified context

Getting ready

How to do it…

How it works…

There's more…

See also

Execute raw SQL queries

Getting ready

How to do it…

How it works…

There's more…

See also

Write 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

Define onchange methods

Getting ready

How to do it…

How it works…

There's more…

Call onchange methods on the server side

Getting ready

How to do it…

How it works…

There's more…

See also

Port old API code to the new API

Getting ready

How to do it…

How it works

7. Debugging and Automated Testing

Introduction

Producing server logs to help debug methods

Getting ready

How to do it…

How it works…

There's more…

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 YAML

Getting ready

How to do it…

How it works…

There's more…

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…

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

How to do it...

How it works...

Form

Header

Button

Group

Field

General attributes

Other tags

There's more...

See also

Adding buttons to forms

How to do it...

How it works...

There's more...

Passing parameters to forms and actions: Context

Getting ready

How to do it...

How it works...

There's more...

See also

Defining filters on record lists: Domain

How to do it...

How it works...

There's more...

Operators

Pitfalls

See also

List views

How to do it...

How it works...

There's more...

Search views

How to do it...

How it works...

There's more...

See also

Changing existing views: View inheritance

How to do it...

How it works...

There's more...

Order of evaluation in view inheritance

See also

Document-style forms

How to do it...

How it works...

Dynamic form elements using attrs

How to do it...

How it works...

There's more...

Embedded views

How to do it...

How it works...

There's more...

Kanban views

How to do it...

How it works...

There's more...

Show kanban cards in columns according to their state

Getting ready

How to do it...

How it works...

There's more...

Calendar views

How to do it...

How it works...

There's more...

Graph and pivot views

Getting ready

How to do it...

How it works...

There's more...

QWeb reports

Getting ready

How to do it...

How it works...

There's more...

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

10. Access Security

Create security groups and assign them to users

Getting ready

How to do it...

How it works...

There's more...

Add security access to models

Getting ready

How to do it...

How it works...

There's more...

Limit access to fields in models

How to do it...

How it works...

There's more...

Limit record access using record rules

Getting ready

How to do it...

How it works...

There's more...

Using security group to activate features

Getting ready

How to do it...

How it works...

There's more...

11. Internationalization

Installing a language and configure user preferences

Getting ready

How to do it...

How it works...

There's more...

See also

Configure language-related settings

Getting ready

How to do it...

How it works...

There's more...

Translate texts through the web client user interface

Getting ready

How to do it...

How it works...

There's more...

Exporting translation strings to a file

Getting ready

How to do it...

How it works...

There's more...

Use gettext tools to ease translations

How to do it...

How it works...

There's more...

Import translation files

Getting ready

How to do it...

How it works...

12. Automation and Workflows

Introduction

Using Kanban stages and features

Getting ready

How to do it...

How it works...

There's more...

Creating server actions

Getting ready

How to do it...

How it works...

There's more...

Adding messaging and tracking features

Getting ready

How to do it...

How it works...

There's more...

Using Python code server actions

Getting ready

How to do it...

How it works...

There's more...

Using automated actions on time conditions

Getting ready

How to do it...

How it works...

There's more...

Using automated actions on event conditions

Getting ready

How to do it...

How it works...

There's more...

Inspecting built-in workflows

Getting ready

How to do it...

How it works...

See also

13. Web Server Development

Introduction

Make a path accessible from the network

Getting ready

How to do it…

How it works…

openerp.http.route

Return values

openerp.http.request

There's more…

See also

Restrict access to web accessible paths

Getting ready

How to do it…

How it works…

There's more…

Consume parameters passed to your handlers

How to do it…

How it works…

There's more…

See also

Modify an existing handler

Getting ready

How to do it…

How it works

There's more…

See also

Using the RPC API

How to do it…

How it works…

XMLRPC

JSONRPC

There's more…

See also

14. CMS Website Development

Introduction

Extending CSS and JavaScript for the website

Getting ready

How to do it...

How it works...

There's more...

Creating or modifying templates - QWeb

Getting ready

How to do it...

How it works...

Loops

Attributes

Fields

Conditionals

Inline editing

There's more...

See also

Offering snippets to the user

Getting ready

How to do it...

How it works...

There's more...

15. Web Client Development

Introduction

Creating custom widgets

Getting ready

How to do it...

How it works...

There's more...

See also

Using client-side QWeb templates

Getting ready

How to do it...

How it works...

There's more...

See also

Making RPC calls to the server

Getting ready

How to do it...

How it works...

There's more...

See also

Writing tests for client side code

Getting ready

How to do it...

How it works...

There's more...

See also

Debugging your client side code

Getting ready

How to do it...

How it works...

There's more...

16. Server Deployment

Introduction

Installing Odoo for production

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…

Set up Odoo as a system service

Getting ready

How to do it…

Configuring systemd to start Odoo

Configuring sysvinit or upstart to start Odoo

How it works…

There's more…

Configure a reverse proxy and SSL

Getting ready

How to do it…

How it works…

There's more…

See also

Use buildout for repeatable builds

Getting ready

How to do it…

How it works…

There's more…

Temporary merges

Freezing a buildout

See also

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部