İçereği Atla
Menü
Bu soru işaretlendi
4300 Görünümler

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
Vazgeç

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/

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
May 20
2814
2
May 24
1319
1
Tem 23
5703
2
Tem 19
4443
1
Nis 15
14092