From 2a4cdfe43b618bc787e9c64cf1e0f259dbfa30b3 Mon Sep 17 00:00:00 2001 From: Robin Baumgartner Date: Thu, 26 Sep 2013 10:57:57 +0200 Subject: [PATCH] Fix value of Reference fields when id is -1 issue3375 review1089002 (transplanted from d24d3b856c487b9904fa60923708faa751a0d6ed) --- tryton/gui/window/view_form/model/field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/model/field.py b/tryton/gui/window/view_form/model/field.py index 85af6a708b..b8b2a0152c 100644 --- a/tryton/gui/window/view_form/model/field.py +++ b/tryton/gui/window/view_form/model/field.py @@ -818,7 +818,7 @@ class ReferenceField(CharField): def get(self, record, check_load=True, readonly=True, modified=False): if (record.value.get(self.name) and record.value[self.name][0] - and record.value[self.name][1] >= 0): + and record.value[self.name][1] >= -1): return ','.join(map(str, record.value[self.name])) return None