ir.attachment :: Attachment

Attachments are used to link binary files or url to any openerp document. External attachment storage --------------------------- The computed field ``datas`` is implemented using ``_file_read``, ``_file_write`` and ``_file_delete``, which can be overridden to implement other storage engines. Such methods should check for other location pseudo uri (example: hdfs://hadoopserver). The default implementation is the file:dirname location that stores files on the local filesystem using name based on their sha1 hash

Fields

  • access_token [char]: Access Token

  • checksum [readonlychar(40)]: Checksum/SHA1

  • company_id [many2one: res.company]: Company

  • create_date [readonlydatetime]: Created on

  • create_uid [readonlymany2one: res.users]: Created by

  • datas [binary]: File Content (base64)

  • db_datas [binary]: Database Data

  • description [text]: Description

  • display_name [readonlychar]: Display Name

  • document_ids [one2many: documents.document]: Document

  • file_size [readonlyinteger]: File Size

  • id [readonlyinteger]: ID

  • image_height [readonlyinteger]: Image Height

  • image_src [readonlychar]: Image Src

  • image_width [readonlyinteger]: Image Width

  • index_content [readonlytext]: Indexed Content

  • local_url [readonlychar]: Attachment URL

  • mimetype [readonlychar]: Mime Type

  • name [requiredchar]: Name

  • original_id [many2one: ir.attachment]: Original (unoptimized, unresized) attachment

  • public [boolean]: Is public document

  • raw [binary]: File Content (raw)

  • res_field [char]: Resource Field

  • res_id [many2one_reference]: Resource ID

  • res_model [char]: Resource Model

  • res_name [readonlychar]: Resource Name

  • store_fname [char]: Stored Filename

  • type [requiredselection]: Type

  • url [char(1024)]: Url

  • voice_ids [one2many: discuss.voice.metadata]: Voice

  • write_date [readonlydatetime]: Last Updated on

  • write_uid [readonlymany2one: res.users]: Last Updated by