5sControl / 5sControl/odoo_apps

Import Users data from Manifest to Odoo

Ouverte
#15 0 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
HTML
Étoiles
0
Forks
0
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**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**

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

The issue describes a data pipeline from Manifest to Odoo. Start by examining the existing Odoo module structure and locating any CRON job setup. Look for API client code for Manifest (JWT auth) and Odoo (token auth). The UserImportService with its three components (UserManifestClient, UserMapper, UserOdooService) needs to be implemented. Check for existing model definitions in Odoo to understand the target data format. 'Done' means users are successfully imported via the API on a schedule.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
api, backend, data-engineering
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.