Quantcast
Channel: OpenERP Help - Individual question feed
Viewing all articles
Browse latest Browse all 464

Change filename of binary field

$
0
0
I have in my model function filed returning binary. How can I change returning filname? Function: def _get_vcard(self, cr, uid, ids, prop, unknow_none, context=None): res = [] for id in ids: res.append((id, base64.b64encode("test".encode('utf-8')))) return dict(res) Model: _columns = { 'vcard': fields.function(_get_vcard, type='binary', string='vCard') }

Viewing all articles
Browse latest Browse all 464

Trending Articles