Ir al contenido
Menú
Se marcó esta pregunta

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/

Publicaciones relacionadas Respuestas Vistas Actividad
0
may 20
2764
2
may 24
1233
1
jul 23
5602
2
jul 19
4378
1
abr 15
14018