コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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
2766
2
5月 24
1238
1
7月 23
5610
2
7月 19
4384
1
4月 15
14024