summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorStephane Wirtel <stephane@tinyerp.com>2009-01-13 03:22:26 +0100
committerStephane Wirtel <stephane@tinyerp.com>2009-01-13 03:22:26 +0100
commit121bbced1e18c3e54aecddaf2c11bcc49b7153d0 (patch)
tree4cea30e7c7f301abbca47cd9b57ca34420ae0e51 /bin
parent0ef9e21e6d6a6843c5a9016019b064c578f446b1 (diff)
[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
Diffstat (limited to 'bin')
-rw-r--r--bin/report/custom.py9
1 files 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']