Skip to Content
Menú
This question has been flagged

I have a field.char and I want to save the user input into database.

_columns={

        'code':fields.char("Código",size=10),

        }

the querie I use is this: cr.execute("INSERT INTO gs_recintos (code) VALUES (%s)",(user_input))

so how can I fill the database with the user input on the field code?

Avatar
Descartar

In Openerp ORM Create Method Insert data in DB. For more details see the link http://help.openerp.com/question/760/what-is-the-orm-used-in-version-7-of-openerp/

Related Posts Respostes Vistes Activitat
0
de maig 20
2817
2
de maig 24
1325
1
de jul. 23
5707
2
de jul. 19
4451
1
d’abr. 15
14092