跳至内容
菜单
此问题已终结

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/

相关帖文 回复 查看 活动
0
5月 20
2774
2
5月 24
1256
1
7月 23
5635
2
7月 19
4405
1
4月 15
14037