diff options
| author | Yannick Tivisse <yti@odoo.com> | 2017-10-09 17:55:42 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-10-10 10:39:43 +0200 |
| commit | 1df6f4c74151d012f9ff784cef6eea58a5ac3b9e (patch) | |
| tree | 4365f3bdcd4aa29d4d8a7fd3816078e3f5ea1746 /odoo/sql_db.py | |
| parent | 707c6b8016f2444494abfed97644b5022305aa05 (diff) | |
[FIX] ir_actions_report: Render correctly the base64 images in P3
Purpose
=======
In python2 a binary field value is retrieved as a string. Example: company_id.logo = u'xyz'
In python3 a binary field value is retrieved as a binary. Example: company_id.logo = b'xyz'
When trying to render an image on a template, we should pass a stringified version of it.
Specification
=============
Pass the method to_text in the template rendering context and use it.
Diffstat (limited to 'odoo/sql_db.py')
0 files changed, 0 insertions, 0 deletions
