1
#This file is part of Tryton. The COPYRIGHT file at the top level of
2
#this repository contains the full copyright notices and license terms.
4
from trytond.model.fields.field import Field
9
Define a binary field (``str``)
13
def get(self, cursor, user, ids, model, name, values=None, context=None):
15
Convert the binary value into ``str``
17
:param cursor: the database cursor
18
:param user: the user id
19
:param ids: a list of ids
20
:param model: a string with the name of the model
21
:param name: a string with the name of the field
22
:param values: a dictionary with the readed values
23
:param context: the context
24
:return: a dictionary with ids as key and values as value
30
res[i['id']] = i[name] and str(i[name]) or None
32
res.setdefault(i, None)