From b87f41a3d995d1ab1c9ee26903f0e63c0cd986eb Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Thu, 26 Mar 2009 10:52:40 +0100 Subject: [PATCH] Add missing _table usage --- trytond/model/fields/property.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/model/fields/property.py b/trytond/model/fields/property.py index 00b076dedc..b715604e1a 100644 --- a/trytond/model/fields/property.py +++ b/trytond/model/fields/property.py @@ -106,7 +106,7 @@ class Property(Function): #Fetch res ids that comply with the domain cursor.execute( - "SELECT cast(split_part(ir_property.res,',',2) as integer), " + \ + 'SELECT cast(split_part("' + property_obj._table + '".res,\',\',2) as integer), ' + \ '"' + property_obj._table + '".id '\ 'FROM "' + property_obj._table + '" '\ 'JOIN "' + field_obj._table + '" on ("' + field_obj._table + '"'+ \