diff options
| author | Fabien Meghazi <agr@amigrave.com> | 2016-08-04 18:11:43 +0200 |
|---|---|---|
| committer | Fabien Meghazi <agr@amigrave.com> | 2016-08-05 13:45:51 +0200 |
| commit | 0a3cd5b0a7bcfff056ebaa31951a9e849d25e397 (patch) | |
| tree | 9db6327791d841a7ae2f8832238610b04d2ca67f /addons | |
| parent | 038d18c2a126d33e681baca12311796d4c22834c (diff) | |
[IMP] force attachment storage for some binary fields
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/pos_cache/models/pos_cache.py | 2 | ||||
| -rw-r--r-- | addons/website_slides/models/slides.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/pos_cache/models/pos_cache.py b/addons/pos_cache/models/pos_cache.py index d90966ce5a4..b1a53ebe841 100644 --- a/addons/pos_cache/models/pos_cache.py +++ b/addons/pos_cache/models/pos_cache.py @@ -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) diff --git a/addons/website_slides/models/slides.py b/addons/website_slides/models/slides.py index 82a582572d9..461ad7be210 100644 --- a/addons/website_slides/models/slides.py +++ b/addons/website_slides/models/slides.py @@ -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') |
