[IMP] force attachment storage for some binary fields

This commit is contained in:
Fabien Meghazi
2016-08-05 13:45:51 +02:00
parent 038d18c2a1
commit 0a3cd5b0a7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ from openerp.tools import pickle as cPickle
class pos_cache(models.Model):
_name = 'pos.cache'
cache = fields.Binary()
cache = fields.Binary(attachment=True)
product_domain = fields.Text(required=True)
product_fields = fields.Text(required=True)
+1 -1
View File
@@ -290,7 +290,7 @@ class Slide(models.Model):
default='document',
help="The document type will be set automatically based on the document URL and properties (e.g. height and width for presentation and document).")
index_content = fields.Text('Transcript')
datas = fields.Binary('Content')
datas = fields.Binary('Content', attachment=True)
url = fields.Char('Document URL', help="Youtube or Google Document URL")
document_id = fields.Char('Document ID', help="Youtube or Google Document ID")
mime_type = fields.Char('Mime-type')