Ok don't what's going on but I've recreated the module and now it works well :)
Thanks for your help ;)
m2f
--
http://www.openobject.com/forum/viewtopic.php?p=60340#60340
m2f
___
> DreamersDelight, I think you're right but I don't know why I'm not able to
> only select the name in my query !
Cause a selection is always build from a key value pair. Look at the
documentation of a selection and how it's build.
Seems I can't help you further cause the code you gave in your
Thanks for your reply :)
But still doesn't work :(
I've tried hda's solution : fields.many2one and then widget="selection"
I've tried as well without : widget="selection" just to see if the selection
was keeped
Without any result.
DreamersDelight, I think you're right but I don't know why I'm
If you don't need domain on the selection field and want to load all records of
that object better to define fields.many2one
and on xml view just add widget="selection" attribute on that field so that it
will look like selectionbox.
OpenERP=Easier, Adaptable, Affordable
Check this example:
'title': fields.selection(_partner_title_get, 'Title', size=32),
def _partner_title_get(self, cr, uid, context={}):
obj = self.pool.get('res.partner.title')
ids = obj.search(cr, uid, [('domain', '=',
'partner')])
res = obj.read(cr, uid, ids, ['shortcut','name'],
nobody can help me ?
m2f
--
http://www.openobject.com/forum/viewtopic.php?p=60200#60200
m2f
___
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp