From 121bbced1e18c3e54aecddaf2c11bcc49b7153d0 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Tue, 13 Jan 2009 03:22:26 +0100 Subject: [PATCH] [FIX] Use the field name instead of the field label lp bug: https://launchpad.net/bugs/314529 fixed bzr revid: stephane@tinyerp.com-20090113022226-m8rrce0e82d7lr8o --- bin/report/custom.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/report/custom.py b/bin/report/custom.py index 0823457ddce..f7ff8996875 100644 --- a/bin/report/custom.py +++ b/bin/report/custom.py @@ -158,8 +158,13 @@ class report_custom(report_int): row = [] cond = [] for i in range(4): - if f['field_child'+str(i)]: - row.append(f['field_child'+str(i)][1]) + field_child = f['field_child'+str(i)] + if field_child: + row.append( + service.execute(cr.dbname, uid, + 'ir.model.fields', 'read', [field_child[0]], + ['name'], context=context)[0]['name'] + ) if f['fc'+str(i)+'_operande']: fct_name = 'id' cond_op = f['fc'+str(i)+'_op']