WOPI
document_wopi · OCA/knowledge
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 105 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.13 MB
Module directory on disk
Code analysis
7 migration notes
3 models
2 views
2 HTTP endpoints
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
DocumentWopiAccessToken— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) migration-api-multi-one · sourceKnowledgeConfigSettings— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_backend |
document_wopi assets | ir.ui.view | qweb | Inherits web.assets_backend |
view_knowledge_configuration |
knowledge.config.settings | Inherits knowledge.view_knowledge_configuration |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/wopi/files/<model("ir.attachment"):attachment> |
WopiEndpoints.files |
public | http | ALL | sudo |
/wopi/files/<model("ir.attachment"):attachment>/contents |
WopiEndpoints.files_contents |
public | http | ALL | sudo |
Models touched 3
New fields (0)
No new fields.
Public methods (1)-
get_access_token(self, attachment_id)@api.modelReturn an access token to pass to the WOPI client. Make sure the user in question can access the resource
New fields (6)
-
action_urlCharcompute='_compute_action_url' -
attachment_idMany2one → ir.attachmentondelete='cascade'required=True args: 'ir.attachment', 'Attachment' -
tokenCharrequired=True -
token_ttlIntegercompute='_compute_token_ttl' -
user_idMany2one → res.usersondelete='cascade'required=True args: 'res.users', 'User' -
valid_untilDatetime
No public methods.
New fields (1)
-
document_wopi_clientChardefault=<expr>required=True args: 'WOPI client'
-
set_document_wopi_client(self)@api.multi