From c1e77c77eb550b253f731835f550fec022378aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 16 Aug 2013 11:07:44 +0200 Subject: [PATCH] Fix binary size handling migration to Active Record review1017002 --- trytond/model/fields/binary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trytond/model/fields/binary.py b/trytond/model/fields/binary.py index a7283030f9..19f0cab791 100644 --- a/trytond/model/fields/binary.py +++ b/trytond/model/fields/binary.py @@ -43,7 +43,8 @@ class Binary(Field): res = {} converter = buffer default = False - format_ = Transaction().context.pop('%s.%s' % (model, name), '') + format_ = Transaction().context.pop('%s.%s' % (model.__name__, name), + '') if format_ == 'size': converter = len default = 0