Binary field tree view causes error on empty field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
This bug occurs when you add a binary field on a tree view. When you do, and the field is empty, it still provides you with a download-button, as well as file information regarding the non-existing file (it states that the file is 0.00 bytes).
When pressing the "download" button when the field itself is empty, the server presents you with an error, namely:
-------
Internal Server Error
{"message": "OpenERP WebClient Error", "code": 300, "data": {"debug": "Client Traceback (most recent call last):\n File \"/$mylocation/
-------
The form view does this correctly, by not displaying a button nor file information.
Using OpenERP v7 from the /7 branch.
Server revno: 4910
Addons revno: 8950
Web revno: 3867
Related branches
- Serpent Consulting Services (community): Needs Resubmitting
- Xavier (Open ERP) (community): Disapprove
-
Diff: 11 lines (+1/-0)1 file modifiedaddons/web/static/src/js/view_list.js (+1/-0)
Changed in openobject-server: | |
status: | New → Confirmed |
Changed in openobject-server: | |
importance: | Undecided → Low |
affects: | openobject-server → openerp-web |
Changed in openerp-web: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
status: | Confirmed → Fix Committed |