Attachment locking
attachment_lock · OCA/knowledge
Health
45/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 104 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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.02 MB
Module directory on disk
Code analysis
7 migration notes
2 models
3 views
0 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
IrAttachment— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourceIrAttachmentLock— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourcecron_cleanup— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. migration-cron-numbercall · sourceview_ir_attachment_lock_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · 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
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
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- document_wopi
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_backend |
attachment_lock assets | ir.ui.view | qweb | Inherits web.assets_backend |
view_ir_attachment_lock_form |
ir.attachment.lock | form | New | |
view_ir_attachment_lock_tree |
ir.attachment.lock | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (3)
-
can_lockBooleancompute='_compute_locked' -
lock_idsOne2many → ir.attachment.lockargs: 'ir.attachment.lock', 'attachment_id', 'Locks' -
lockedBooleancompute='_compute_locked'
-
lock(self, lock_type='exclusive', valid_until=None, data=None)@api.multi -
unlock(self)@api.multi
New fields (6)
-
applicationSelectiondefault='manual'required=True args: [('manual', 'Manual lock')] -
attachment_idMany2one → ir.attachmentindex=Truerequired=True args: 'ir.attachment', 'Attachment' -
create_uidMany2one → res.usersdefault=<expr>required=True args: 'res.users', 'User' -
lock_typeSelectiondefault='shared'required=Truestring='Type' args: [('exclusive', 'Exclusive'), ('shared', 'Shared')] -
shared_user_idsMany2many → res.usersargs: 'res.users' -
valid_untilDatetimedefault=fields.Datetime.to_string(<expr>)required=True
No public methods.