Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Base

Entity: ir.attachment

Compute Method: _compute_raw

Inputs Method Outputs
for attach in self:
            if attach.store_fname:
                raw = attach._file_read()
            else:
                raw = BinaryBytes(attach.db_datas, filename=attach.name)
            attach.raw = raw

Back to entity