TIP: You can type at any time to perform a new search.
Attachment locking
attachment_lock · OCA/knowledge
Security findings
Migration considerations
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.exceptions` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
view_ir_attachment_lock_tree— View 'view_ir_attachment_lock_tree' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/knowledge · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Knowledge Management
- Folder size
- 0.02 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- None
- Last tracking update
- 2026-08-07 07:03:08
- Authors
- Odoo Community Association (OCA), Therp BV
- Maintainers
- Odoo Community Association (OCA), Therp BV
- Committers
- Holger Brunn
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- document_wopi
- Description
Code Analysis
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.