Documents
Tiedostot ja kansiot
Mihin se on tarkoitettu
A register of business documents with folder, kind, owner, expiry and confidentiality. It stores references to documents, not the file contents.
Mitä paketti tekee ja mitä ei
A register of business documents: folders, document records with kind, owner, expiry and confidentiality, and a draft, published and archived flow. It stores references, not file contents.
Mallit
documents_folder
A folder that groups documents
Lukuryhmä: documents.user. Kirjoitusryhmä: documents.manager.
| Kenttä | Tyyppi | Tietoluokka | Henkilötieto | Ryhmä | Agentit näkevät | Kuvaus |
|---|---|---|---|---|---|---|
name | text | none | ei | documents.user | selkoisena | Folder name |
parent_id | ref → documents_folder | none | ei | documents.user | selkoisena | The folder this one sits in |
description | longtext | none | ei | documents.user | selkoisena | What belongs in the folder |
documents_document
A contract, policy, certificate or other document on record
Lukuryhmä: documents.user. Kirjoitusryhmä: documents.user.
| Kenttä | Tyyppi | Tietoluokka | Henkilötieto | Ryhmä | Agentit näkevät | Kuvaus |
|---|---|---|---|---|---|---|
title | text | none | ei | documents.user | selkoisena | Document title |
folder_id | ref → documents_folder | none | ei | documents.user | selkoisena | The folder the document is filed in |
kind | select (contract, invoice, policy, report, certificate, other) | none | ei | documents.user | selkoisena | Type of document: contract, invoice, policy, report, certificate, other |
confidentiality | select (public, internal, confidential, restricted) | none | ei | documents.user | selkoisena | Who should see it, as a label for readers: public, internal, confidential, restricted |
owner | text | internal | kyllä | documents.user | maskattu | Name of the person responsible for the document |
reference | text | none | ei | documents.user | selkoisena | Reference number, for example a contract number |
location | text | none | ei | documents.user | selkoisena | Where the file is stored, such as a link or archive box |
expires_on | date | none | ei | documents.user | selkoisena | Date after which the document is no longer valid (YYYY-MM-DD) |
summary | longtext | none | ei | documents.user | selkoisena | What the document says, in a few lines |
state | select (draft, published, archived) | none | ei | documents.user | selkoisena | Document status: draft, published, archived |
Työnkulut
documents_document
| Toiminto | Siirtää | Kuka voi suorittaa | Hyväksyntä |
|---|---|---|---|
documents_document.publish | state: draft → published | documents.user | ei |
documents_document.archive | state: published → archived | documents.manager | ei |
Käyttöoikeusryhmät
Tämän sovelluksen käyttämät ryhmät:
documents.managerdocuments.user
Hyväksyntävaiheet
Mikään tämän sovelluksen vaihe ei vaadi hyväksyntää tietueiden poistamista lukuun ottamatta.
Mitä agentit voivat ja eivät voi tehdä
Agentti voi lukea, hakea, luoda ja päivittää tämän sovelluksen tietueita sekä suorittaa toiminnot, jotka eivät vaadi hyväksyntää, tunnisteensa käyttöoikeusryhmien rajoissa.
Se voi vain ehdottaa näitä vaiheita, ja ihmisen on hyväksyttävä ne: documents_folder.delete, documents_document.delete.
Henkilötiedot maskataan paikkamerkeiksi: documents_document.owner.
Riippuvuudet
Ei ole.
Asennus
Asenna se Customize-sovelluksesta (Marketplace) tai komentoriviltä:
obop modules install-from documentsVaatii tietokannan ja ylläpitäjän oikeudet.
Tee oma
Moduulioppaassa näytetään, miten tällaiset sovellukset kirjoitetaan