summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/transcoder.js
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2015-09-23 14:02:31 +0200
committerRaphael Collet <rco@openerp.com>2015-09-28 15:19:47 +0200
commit1bb61c970ed63eabe3821d21f3ed6f99c4b16daa (patch)
tree0f1bb417e63c09a4d7fa55825dc1f4cde34b090c /addons/web_editor/static/src/js/transcoder.js
parent6327cda0a79a6cbae1d5f9981aed27d26cdad4fe (diff)
[ADD] fields: add option to store binary fields into attachments
Such a field is declared as: image = fields.Binary("Image", attachment=True) With this option, the value of a binary field F is stored in an attachment with `res_field=F`. When attachments are stored into the filestore, binary fields are consequently stored in the filestore as well. Note that the option does not work on old-API function fields. By default searching on `ir.attachment` filters out attachments for binary fields: the condition `res_field=False` is added to the domain unless a condition on field `id` or `res_field` is already present. The client uses `search_read` with a domain like `[('id', 'in', ids)]` for reading the data on a form view. In that case, we should not filter out attachments that store binary fields. Also, do not filter search results for the superuser.
Diffstat (limited to 'addons/web_editor/static/src/js/transcoder.js')
0 files changed, 0 insertions, 0 deletions