[6.0] on_change with "return values​​ binary64" needs attention

Bug #883559 reported by Moisés López - http://www.vauxoo.com
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Invalid
Undecided
Unassigned
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP Publisher's Warranty Team
Odoo Web Client
Invalid
Undecided
Unassigned

Bug Description

1) Set a onchange function in any field
return values to a field binary with base64 encodestring
2) No set binary field with data returned
3) Yes set binary field wiith data returned
4) OpenERP-Client-6 & OpenERP-Web-6
5) revno 1908

Changed in openobject-client:
status: New → Invalid
Changed in openobject-server:
status: New → Invalid
Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

Had been unable to replicate the error.
But I could record the video sequence to generate the bug

Changed in openobject-server:
status: Invalid → New
Changed in openobject-client:
status: Invalid → New
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

I have checked your issue with latest updated code, with creating of following on_change on hr.py

    def onchange_address_id(self, cr, uid, ids, address, context=None):
        file = open("/home/amp/Desktop/steve-jobs1.jpg", 'r')
        import base64
        data = base64.encodestring(file.read())
        if address:
            address = self.pool.get('res.partner.address').browse(cr, uid, address, context=context)
            return {'value': {'work_email': address.email, 'work_phone': address.phone, 'mobile_phone': address.mobile,'photo': data}}

        return {'value': {}}

It's working fine with latest trunk but in stable v6 I have faced the problem. So I am assigning this to OPW

I have attached a video for both Stable and Trunk.

Thanks!

Revision history for this message
Amit Parik (amit-parik) wrote :
Revision history for this message
Amit Parik (amit-parik) wrote :
Changed in openobject-client-web:
status: New → Invalid
Changed in openobject-client:
status: New → Invalid
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
assignee: OpenERP's Framework R&D (openerp-dev-framework) → OpenERP Publisher's Warranty Team (openerp-opw)
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.