diff --git a/tryton/gui/window/view_form/model/field.py b/tryton/gui/window/view_form/model/field.py index 79e34016b4..f6ad89911b 100644 --- a/tryton/gui/window/view_form/model/field.py +++ b/tryton/gui/window/view_form/model/field.py @@ -828,6 +828,8 @@ class BinaryField(CharField): def get_data(self, record): if not isinstance(record.value.get(self.name), (basestring, buffer)): + if record.id < 0: + return '' ctx = rpc.CONTEXT.copy() ctx.update(record.context_get()) rpcprogress = RPCProgress('execute', ('model', record.model_name,