Files
2026-09-16 15:34:00 +08:00

69 lines
2.5 KiB
Python

# -*- coding: utf-8 -*-
{
'name': 'OdooshCN Lab Environments',
'category': 'Productivity',
'version': '18.0.2.3.0',
'sequence': 20,
'summary': "Sync users to the OdooshCN platform and let them open their own lab environment in one click",
'description': """
OdooshCN Lab Environments
=========================
Syncs the users of this system to an OdooshCN platform and gives every user a
one-click entry to their own lab environment, without a second set of credentials.
Features
--------
* **User sync** - creating, updating, archiving or deleting a user is pushed to
OdooshCN asynchronously. The hooks only write to a local queue, so the platform
being slow or down never blocks user management here.
* **Per-user permissions** - the platform role, organisation, quotas, Web Shell,
enterprise edition and menu visibility are plain fields on the user form.
Change a field, it is synced.
* **One-click entry** - a menu entry opens the user's own lab environment with no
extra login.
* **Environment board** - each user sees the name, status and version of their
own environments, read live from the platform.
* **Sync queue** - administrators can inspect every push, its payload, its result
and retry the failed ones.
Rules
-----
1. Once the platform URL and access token are configured, a new user is synced
immediately and their sync switch is turned on automatically.
2. Updating a user syncs when the switch is on, and does nothing when it is off.
3. Archiving deactivates the platform account; deleting deletes it; restoring an
archived user activates it again.
Configuration
-------------
Settings > General Settings > OdooshCN Lab Environments: fill in the platform URL
and the access token, then press *Test connection*.
""",
'author': 'Charles',
'website': '',
'license': 'LGPL-3',
'depends': ['base', 'base_setup', 'web', 'college'],
'data': [
'security/odoosh_security.xml',
'security/ir.model.access.csv',
'data/ir_cron_data.xml',
'views/res_config_settings_views.xml',
'views/res_users_views.xml',
'views/odoosh_sync_log_views.xml',
'views/odoosh_environment_views.xml',
'views/odoosh_menus.xml',
],
'assets': {
'web.assets_backend': [
'odoosh_connector/static/src/js/odoosh_embed.js',
'odoosh_connector/static/src/xml/odoosh_embed.xml',
'odoosh_connector/static/src/scss/odoosh.scss',
],
},
'installable': True,
'application': True,
'auto_install': False,
}