Create a new apps and models¶
With the Viindoo Customizer application, a system administrator extends the Viindoo Enterprise Management Software without writing code: add a field to an existing screen, create a model to store a new kind of record, or create a whole application around it. This article follows that path, from the smallest change to the largest.
Who |
A system administrator: a user whose Role is Administrator. |
App |
Viindoo Customizer |
Requirements
This tutorial requires the installation of the following applications/modules:
It also assumes you know how to open the Customizer. See Customize the existing interface.
Note
Every application is a module. A large, standalone module is usually called an application, and the other modules extend an application. A model is a table of information, such as Sales Order or Contact, made of fields. A new model and a new application are both stored inside the database, not as code.
Create a new field¶
Open a form or a list in the Customizer. On the Add tab, the New Fields tiles offer about twenty field types, such as Text, Multiline Text, Integer, Date, Selection, Many2one, Tags, Image and Related Field. A tile appears only when the model can use it: Monetary, for example, needs a currency field.
Click a tile, or drag it onto the canvas, to open the Create a new field dialog.
Click a tile: the Customizer places the field at the end of the last group of a form, or at the end of a list.
Drag a tile: the field goes where you drop it. You can move it afterwards.
Create a plain field¶
In Field Name, keep the
x_that the box already contains and type the rest, without spaces, for examplex_internal_remarks. The name of every custom field starts withx_.In Field Label, type the name that the people using the screen will see.
Optionally, fill in Field Help, the hint shown when the user points at the field.
To restrict the field to some groups from the start, choose them in Field access (all views). See The access rights in Viindoo customizer.
Click Save, or Discard to cancel. The field appears on the canvas at once.
The Field Type follows the tile you clicked. For a Text field, the Translatable box lets each language have its own value.
Create a selection field¶
A selection field offers a list of choices.
Click the Selection tile.
Fill in Field Name and Field Label.
Under Selection Options, click Add a line for each choice and fill in its Value, the stored code, and its Name, the text shown to users. Drag the handle of a line to reorder it. A selection field needs at least one option.
Create a new model¶
A model stores a new kind of record, for example the delivery routes of an office furniture supplier.
In the top bar of the Customizer, click New Model.
In Model name, type the name without the prefix. The box already shows
x_in front of it, sodelivery_routecreates the modelx_delivery_route. If the name is already used, a notice asks you to choose another one.In Model description, type the name that people will see, then click Configure Model. The button stays disabled until a model name is typed.
The Suggest features for new model dialog opens. It has three parts.
View Active¶
Tick the views to generate: Form View, List View, Pivot View and Graph View. Form View and List View are ticked by default. Learn more about views in Introduce about fields, widgets and views.
Model Templates¶
Templates add ready-made fields and behavior, so that you do not build them one by one. You can combine several templates.
Contact details |
Adds a contact, a phone number and an email to the records. |
Company |
Restricts each record to a company. A record without a company stays visible to every company. |
Chatter (ticked by default) |
Lets users send messages, log notes and schedule activities on a record. |
User assignment |
Assigns a responsible user to each record. |
Date & Calendar |
Adds start and end dates. |
Pipeline stages |
Moves records through the stages of a custom pipeline. |
Tags |
Categorizes records with custom tags. |
Picture |
Attaches a picture to a record. |
Lines |
Adds an embedded list of detail lines to a record. |
Notes |
Adds a field for additional notes. |
Monetary value |
Adds a price or a cost. |
Custom Sorting (ticked by default) |
Lets users sort records manually in the list view. |
Archiving (ticked by default) |
Adds an active flag to archive records instead of deleting them. |
Untick the templates you do not need.
Access Rights¶
Scroll down to the Access Rights part. Click Add a line, choose a user group, then tick what the group may do with the new model: Read Access, Write Access, Create Access and Delete Access.
Administrators always have full access to a new model. See The access rights in Viindoo customizer to change the access rights of a model later.
Click Create Model, or Back to return to the first step. The Customizer opens the list of the new model, and adds a menu item for it to the menu of the app you were editing.
Lay out the form of a new model¶
The Components tiles of the Add tab structure the form of a model:
Notebook: a set of pages shown as tabs.
Group - Two Columns and Group - One Column: a block of fields in two columns or in one.
Drag a tile onto the form. Select a notebook page or a group to rename it in Label and to choose who sees it with Limit visibility to groups and Forbid visibility to groups. Then add fields with the New Fields tiles, as above.
Click Close in the top right corner to leave the Customizer.
Create a new application¶
An application groups menus under one icon of the app menu. The wizard creates the application and its first menu.
In the top bar of the Customizer, click New App. The button is there on every screen of the Customizer, including its landing page.
On the welcome page, click Start now.
Type the name of the application and design its icon: choose the colors and the picture, or click Upload Icon to use your own image. Click the right arrow to continue.
Type the name of the object of the first menu, then choose what the menu opens:
New Model: the Customizer creates a model for the menu. It opens the Suggest features for new model dialog described in Create a new model.
Existing Model: the menu opens a model that already exists. Choose it in Model.
Click the right arrow to finish. The application appears in the app menu with its name and its icon, and its menu opens the list and the form of the model.
To carry a new application or model to another database, see Export and import customizations. If something does not work as described here, see Troubleshooting and FAQ.
See also
Related article