Hi All, 

I've created a function which is a filter : 

def _get_monde(self, cr, uid, context={}):
        cr.execute('SELECT id,name FROM monde')
        return cr.fetchall()

And i've declared a fields.selection which is using the function above :

'monde_1': fields.selection(_get_monde,'Language order1', change_default=True),

I've got the list in my field 'monde_1', but when I select a value in this 
field and then save the form the system doesn't keep my selection(the field 
stay empty) :(

In the query : Instead of 'id' and 'name', I've tried to select only 'name' but 
I've got an error type "exception.ValueError"

I really don't know how to fix this, I've tried many manipulation but nothing 
work :(

If someone has any idea, thanks a lot to let me know :)

Sam
Thanks again for your help




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=60169#60169

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to