5sControl / 5sControl/odoo_apps

Import Users data from Manifest to Odoo

Aperta
#15 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
HTML
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Main entities:**

- Odoo module
- API on Digital Ocean
- Manifest

**Task:**
Organize the import of users from Manifest to Odoo via API.

**Data Flow:**
Manifest → API (Digital Ocean) → Odoo

Image

**UserImportService**

- _UserManifestClient_ - to work with the Manifest API.
- _UserMapper_ - to convert data from Manifest to Odoo format.
- _UserOdooService_ - for sending data to Odoo.

**AuthService**

- _Manifest (JWT) Auth_ - API is authorized to Manifest via JWT
- _Auth (token)_ - Odoo API authorization (The API is closed and protected - it does not give data to anyone.
In order for Odoo to send an API request, it must prove that it is a trusted client. For this purpose, Odoo stores the API Token (Bearer Token))

**Odoo API Manifest Interface**

1. **Odoo sends request to API -> get users**
Odoo runs a CRON job (every **N** minutes or manually). CRON-a task - send request to API (**FOR NOW USED A MANUAL METHOD!**)
2. **API is authorized to Manifest via JWT**
3. **API retrieves user data from Manifest**
4. **API mapped data**
5. **API sends data back to Odoo**
6. **In Odoo, data is written to the model**

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.