万本电子书0元读

万本电子书0元读

顶部广告

Odoo Development Essentials电子书

售       价:¥

13人正在读 | 0人评论 6.2

作       者:Daniel Reis

出  版  社:Packt Publishing

出版时间:2015-04-06

字       数:136.1万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book is intended for developers who need to quickly become productive with Odoo. You are expected to have experience developing business applications, as well as an understanding of MVC application design and knowledge of the Python programming language.
目录展开

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

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部