Models, modules, and apps¶
Models determine the logical structure of a database and how data is stored, organized, and manipulated. In other words, a model is a table of information that can be linked with other tables. A model usually represents a business concept, such as a sales order, contact, or product.
Modules and apps contain various elements, such as models, views, data files, web controllers, and static web data.
All apps are modules. Larger, standalone modules are typically referred to as apps, whereas other modules usually serve as add-ons to said apps.
When you create a new model or app with Studio, you can choose to add up to 14 features to speed up the creation process. These features bundle fields, default settings, and views that are usually used together to provide some standard functionality. Most of these features can be added later on, but adding them from the start makes the model creation process much easier. Furthermore, these features interact together in some cases to increase their usefulness.
Selecting Contact details adds to the Form view a Many2One field linked to the Contact model and two of its Related Fields: Phone and Email. The Contact field is also added to the List view, and the Map view is activated.
Selecting User assignment adds to the Form view a
Many2One field linked to the Contact model, with
the following Domain:
Share User is not set to only allow the selection of Internal
Users. In addition, the many2one_avatar_user widget is used to display the user’s
avatar. The Responsible field is also added to the List view.
Date & Calendar¶
Date range & Gantt¶
Selecting Pipeline stages activates the Kanban view, adds several fields such as Priority and Kanban State, and three stages: New, In Progress, and Done. The Pipeline status bar and the Kanban State field are added to the Form view. The Color field is added to the List view.
The Pipeline stages feature can be added at a later stage.
The Picture feature can be added at a later stage.
A Currency field is added and hidden from the view.
This is only useful if you work in a multi-company environment.
Selecting Custom Sorting adds to the List view a drag handle icon to manually reorder records.
Selecting Chatter adds to the Form view Chatter functionalities (sending messages, logging notes, and scheduling activities).
The Chatter feature can be added at a later stage.
Export and import customizations¶
When you do any customization with Studio, a new module named Studio customizations is added to your database.
To export these customizations, go toto download a ZIP file containing all customizations.
To import and install these customizations in another database, connect to the destination database and go to Import button., then upload the exported ZIP file before clicking on the
Before importing, make sure the destination database contains the same apps and modules as the source database. Studio does not add the underlying modules as dependencies of the exported module.