Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: HTML Editor
Entity: ir.attachment
Compute Method: _compute_local_url
| Inputs | Method | Outputs |
|---|---|---|
|
+ for attachment in self: + if attachment.url: + attachment.local_url = attachment.url + else: + attachment.local_url = '/web/image/%s?unique=%s' % (attachment.id, attachment.checksum) |
|
