Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4262 มุมมอง

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?

อวตาร
ละทิ้ง

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 ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 20
2785
2
พ.ค. 24
1282
1
ก.ค. 23
5654
2
ก.ค. 19
4417
1
เม.ย. 15
14052