Design#
The Internal Resource Module introduces the following concepts:
Note
For historical reasons the module’s technical name is ir
.
Model#
The Model stores a record of each subclass of Model
that is registered in the Pool
.
A model is composed of Fields that represents each
Field
it contains.
The administrator can enable global search for records of the model by checking the Global Search box.
Reports#
Workflow Graph#
The Workflow Graph prints a state diagram for each selected
Workflow
Model.
Wizards#
Graph#
The Graph wizard prints an object diagram that shows the relationships between the selected Models down to the specified depth.
Model Field#
The Model Field keeps a record for each subclass of
Field
that a Model contains.
Model Access#
The Model Access defines the access rights to Models for each Group.
Model Field Access#
The Model Field Access defines the access rights to Model Fields for each group.
Model Data#
The Model Data keeps track of the ModelStorage
records created by modules via XML files.
If a Model Data is out of sync (i.e. the values in the database do not match
the values in the XML definition), it is possible to force synchronisation
using the Sync button.
Model Log#
The Model Log records events such as modification, suppression, click, launch
and transition that happened to a ModelStorage
record.
Action#
The Action concept contains common user interface behavior properties. The list of keywords specifies where the action is available and for which Model. If any Groups are added to the action, then only members of at least one of these groups will have access to the action.
Report Action#
The Report Action stores the properties needed to execute the named
Report
.
Window Action#
The Window Action stores the properties necessary for the client to open a
tab for a ModelStorage
.
It consists of a list of Views and domains.
Wizard Action#
The Wizard Action defines how the client should run the named
Wizard
.
URL Action#
Each URL Action stores a URL to open.
Module#
Every Tryton Module has one entry. The Module keeps track of whether it is activated or not.
Wizards#
Activate / Upgrade Module#
The Activate / Upgrade Module wizard performs the activation or upgrade of the Modules marked as “To Upgrade”, “To Remove” and “To Activate”. It then launches the Config Module wizard.
Module Config Wizard Item#
The Module Config Wizard Item keeps track of the configuration Actions to be launched after the Activate / Upgrade Module wizard.
Wizards#
Config Modules#
The Config Modules wizard launches all the pending Items sequentially.
Attachment#
Attachment is a ResourceMixin
that stores
documents for any ModelStorage
record.
Avatar#
Avatar is a ResourceMixin
that stores a single
avatar for any
avatar_mixin()
record.
Each Avatar record has a UUID which
is used to construct a URL that returns the picture.
A version of the picture is stored in a cache for each size requested.
Cache#
The Cache stores when the named Cache
was last
invalidated.
Calendar Month#
The Calendar Month stores each month of the Gregorian calendar.
Note
Its goal is to provide a target for Many2One
fields with localized month names.
Calendar Day#
The Calendar Day stores each day of the week.
Note
Its goal is to provide a target for Many2One
fields with localized week day names.
Configuration#
The Configuration is a ModelSingleton
that stores
configuration from the database setup, like the
default language and the host name.
Cron#
The Cron stores the configuration for scheduled actions.
Date#
The Date Model
provides the current date.
Email#
The Email is a ResourceAccessMixin
that stores
a copy of the emails sent from a ModelStorage
record.
Email Template#
The Email Template stores templates per Model and is used to fill in the client’s Email form.
Error#
The Error stores exceptions raised by non interactive processes. An Error can be processed and then solved by a User. When an Error is solved the process that originally reported the error is run again.
Note
A scheduled task deletes the errors after the configured number of days.
Export#
The Export stores the saved exports for each User.
An export is composed of a list of Field
names.
When an Export is associated with a Group, it becomes
available for all the Users of that Group.
Language#
The Language defines the properties such as the direction and the formatting of the supported languages. By loading the translations for a Language, it becomes translatable and can be used to translate the user interface.
Message#
The Message stores translatable text that is shown to the Users.
Note#
Note is a ResourceMixin
that stores User’s messages associated with any
ModelStorage
record.
The Note keeps track of who has read each message.
Queue#
The Queue stores the tasks to be run asynchronously.
An expected datetime
can be set to define when the task
should be run.
Rule Group#
The Rule Group stores a set of Rules that define the access rights for records of a Model.
Rule#
The Rule defines a Domain for a Rule Group.
Sequence#
The Sequence defines the properties to generate unique and sequential strings with numbers. A prefix and suffix can be added to the generated sequence string. These support formatting that can include the current Date.
Sequence Strict#
The Sequence Strict is similar to the Sequence but it prevents any gaps in the generated numbers.
Sequence Type#
The Sequence Type is used to categorize the Sequences and defines the Groups allowed to edit them.
Session#
The Session generates and stores the session keys for connected Users.
Session Wizard#
The Session Wizard stores the data from active State
of the Wizard
.
Translation#
The Translation stores the translated strings for each Language.
Wizards#
Set Translation#
The Set Translation wizard creates missing entries for the en
language
for the activated modules.
Clean Translation#
The Clean Translation wizard deletes obsolete entries.
Update Translation#
The Update Translation wizard creates missing entries for other languages
based on the en
entries.
Export Translation#
The Export Translation wizard generates a PO-file for the selected module and language.
Open Report Translation#
The Open Report Translation wizard opens the list of translations for the Reports.
Trigger#
The Trigger registers the conditions and the action to
execute when a Model
record is modified.
UI View#
The View stores the definitions of the different types of view for each
Model
.
A View can inherit from another View to extend its content.
Wizards#
Show View#
The Show View wizard renders the form View.
UI View Tree Width#
The View Tree Width stores the User’s desired column widths for each Field of the Model.
See also
The View Tree Widths can be found by opening the View Tree Width from the Model’s Open related records menu.
UI View Tree Optional#
The View Tree Optional stores whether a User wants an optional field to be displayed or not for a View.
See also
The View Tree Optionals can be found by opening the View Tree Optional from the Model’s Open related records menu.
UI View Tree State#
The View Tree State stores, for each User, the tree view’s expanded and selected nodes for a Model, Domain and children.
See also
The View Tree States can be found by opening the View Tree State from the Model’s Open related records menu.
UI View Search#
The View Search stores the User’s saved Domain for a Model.
See also
The View Searches can be found by opening the View Search from the Model’s Open related records menu.
UI Icon#
The Icon defines the path where a named icon is stored.