openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #01926
[Bug 883559] Re: [6.0] on_change with "return values binary64" needs attention
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!
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/883559
Title:
[6.0] on_change with "return values binary64" needs attention
Status in OpenERP GTK Client:
Invalid
Status in OpenERP Web Client:
Invalid
Status in OpenERP Server:
Confirmed
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/883559/+subscriptions
References