[binary] [trunk/6.1]saving a binary field not saved yet crashes

Bug #1010475 reported by Leonardo Pistone
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Web Team

Bug Description

observed in latest 6.1, server 4199 addons 6934 web 2353

To reproduce:

install document
documents -> create
file content: select a file
(don't save)
press "save as"

2012-06-08 13:23:08,892 56381 ERROR ? openerp.addons.web.common.http.HttpRequest.dispatch: An error occurred while handling a json request
Traceback (most recent call last):
  File "/Users/leo/workspace/oe61/server/openerp/addons/web/common/http.py", line 260, in dispatch
    r = method(controller, self, **self.params)
  File "/Users/leo/workspace/oe61/server/openerp/addons/web/controllers/main.py", line 1451, in saveas_ajax
    (field, model, id))
ValueError: No content found for field 'datas' on 'ir.attachment:'

All is fine with the gtk client, but that happens with other binary fields in other modules. So I think this is a problem with the webclient, not with the document module.

Thanks!

Related branches

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote : Re: [trunk/6.1]saving a binary field not saved yet crashes
summary: - saving a binary field not saved yet crashes
+ [trunk/6.1]saving a binary field not saved yet crashes
Changed in openerp-web:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
Changed in openerp-web:
importance: Low → Medium
summary: - [trunk/6.1]saving a binary field not saved yet crashes
+ [binary] [trunk/6.1]saving a binary field not saved yet crashes
description: updated
Revision history for this message
Fabien Meghazi (OpenERP) (fme) wrote :

Fixed for trunk at Revision:
2549 revid:<email address hidden>

Now looking for 6.1

Changed in openerp-web:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.