odoo Development Introduction

Data access functions: add or delete information check change. Development based on MVC pattern,

Wherein the ORM Model used to manipulate the database table and, ODOO and operation will automatically generate the code;

The view then use XML to customize the interface;

Controller is used to define the XML response.

Workflow development: the expression of working collaborative relationship with the enterprise-level software. There are two ways: defined as XML, drag and drop visual programming definition.

Report Development: the data output of the system to print a particular form. Mainly: the system comes with PDF exemplar and third parties (such as Kang Tiger)

 

 

 

Inheritance Development

Odoo provides a number of ready-made modules for our use, but in some cases, we need to develop functional modules in line with their needs. A golden rule Odoo development is - Do not modify an existing module, in order to avoid changes to the original code module confusing. It can also cause trouble of upgrading.

Therefore, odoo provides inheritance mechanism, we can choose a base module and then inherit it, modify it based on the extension, build your own modules.

 

 

Module file directory components:

data: Sonho demo sum data xml

models: the model defined storage: inherit models.Model class, define model classes will automatically match Odoo ORM interfaces provided, that these model classes are automatically stored in sql.

controllers: http path control storage (url request processing)

views: page view files with template file (xml file, use QWEB language description)

static: static resource files such as css, js, etc.

security: access to the control module, defined in ir.model.access.csv file. You can also create a new record_rule.xml, more granular access control in them.

Inheritance module  _inherit = "inherit module"   to achieve property. After the new module can be created in the new field, modify the parent module of the field, the overloaded methods.

Modules can be inherited not only develop, but also inheritable modifications view files, and view files on a label, be inherited by ref = "inherited view element."

 

 

: Module Development Process

1: Model analysis module, the required field model derived which then define the programming model class --python.

2: Build a menu object - in the views folder, use xml custom menu items.

3: Construction of an operation object, a specific response associated with the menu item.

4: Construction of view objects: main list, tree, form, search view.

5: Configuring __init__.py and __openerp__.py

 

 

 

 

 

 

 

Published 27 original articles · won praise 1 · views 998

Guess you like

Origin blog.csdn.net/jason156/article/details/96699319