Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4423 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ

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/

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 20
2894
2
thg 5 24
1459
1
thg 7 23
5879
2
thg 7 19
4570
1
thg 4 15
14216