Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
4301 Visualizações

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
Cancelar

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/

Publicações relacionadas Respostas Visualizações Atividade
0
mai. 20
2816
2
mai. 24
1320
1
jul. 23
5704
2
jul. 19
4449
1
abr. 15
14092