Ok perfect! Thank you!
Btw, i have a "simple "problem fir the seletion widget.
I try to use a drop-down menus to choose the logo. The user will have the name of logos in the drop-down menus, and choose one.
But the drop-down menus print the name of the table and the id (not the name of the logo):
What i would like:
Name logo 1
Name logo 2
Name logo 3
What the drop-down menus print:
gestion.langue, 1
gestion.langue, 2
gestion.langue, 3
Have you an idea of the error?
My code sale.py:
class gestion_langue(osv.osv)
_name = "gestion.langue"
_description = "Gestion Langue"
_columns = {
'name_langue': fields.char('Langue Name', size=64; required=True)
}
_defaults = {}
gestion_langue()
In def _get_default_shop
'langue_logo_site' : fields.many2one('gestion.langue', 'Langue')
In sale_view.xml
<field name="langue_logo_site" />
Thank you a lot!