Star Information odoo Tutorial - Odoo12 use developer mode

Odoo provides a rapid application development framework that is well suited to create commercial applications. Such applications generally reserved for business records, CRUD operations. Odoo not only simplifies the creation of such an application, it also provides signage, calendars, charts and other rich component view for creating good-looking user interface.

basic concepts

Odoo understand the role of the various layers of the structure as well as the type of component to be used in our great benefit. Let us first an overview of the structure under Odoo applications, application development and then deconstructed into corresponding components. Then there are two versions of Odoo release regular updates: Community Edition and Enterprise Edition, we should understand the difference between the two previous releases as well as big changes brought about by the development and deployment. First, let's look at the application of structure Odoo:

Odoo structure

Odoo follow multilayer structure, i.e., the data layer, a logical layer and a presentation layer:

Odoo structure

Star Odoo information technology development for many years, has a wealth of experience Odoo development, we can communicate with everyone

Data layer is the bottom-most layer, is responsible for persistent data storage, Odoo achieved by PostgreSQL. Odoo support for PostgreSQL database design considerations only, and does not support this type of MySQL database (there are third-party applications can integrate MySQL). File attachments, picture a kind of binary file is usually stored in the file system called filestore (directory) in.

Data layer is the bottom-most layer, is responsible for persistent data storage, Odoo achieved by PostgreSQL. Odoo support for PostgreSQL database design considerations only, and does not support this type of MySQL database (there are third-party applications can integrate MySQL). File attachments, picture a kind of binary file is usually stored in the file system called filestore (directory) in.

All logic layer is responsible for interacting with the data layer by Odoo service is completed. Typically, the bottom of the database through this layer should not be eligible
to take the only way to guarantee access control and data consistency. ORM in Odoo core code for this interface contains a (Object-Relational Mapping Object-relational Mapping) engine. ORM provides an API plug-in modules interact with the data.
For example, data entities like partner customers and suppliers, is reflected by the ORM model. This model is a Python object that supports a variety of interactive methods: create () method is used to create a new partnership record, read () method is used to query existing records and corresponding data. General procedure may be implemented in a particular business logic specified in the model, such as create () method can set the default values or enhanced validation rules, read () method supports a number of fields or calculated automatically according to a user operation performed to implement access control.

Presentation layer for data display and interact with the user, the user experience achieved by the client. ORM API to interact with the client to read, write, verify, or perform other operations, ORM API RPC method call. These operations are sent to the server operating Odoo, and then send the results back to the client for further processing. For the presentation layer, Odoo comes with fully functional web client. The client supports all business functions required for the application: login session, navigation menus, data lists, forms, and so on. Global show will not be as deep as customized front-end engineers thought, but easy to create a functional and consistent user experience. Supporting the presentation layer contains the site framework, the flexibility to create pages like any other CMS frameworks, of course, requires additional operations and web-related knowledge. Website framework to support implementation code via the web to show particular logic controller, and is separate from the internal logic of the model. Front-end engineers will not have any obstacles on the operation. Odoo very open API server, including all server functions. API Web client uses the API to other applications is no different. Accordingly, other client implementation can be done and can be achieved using any programming language on any platform. Desktop and mobile terminal can create applications to provide different user interfaces, which leverages Odoo business logic and data persistence and raw data and logical layer.

More Tutorials: https://www.erpdaxue.cn/odoo/odoo-teach/

Guess you like

Origin www.cnblogs.com/odoo14/p/12560819.html