Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged

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
Zrušit

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 Odpovědi Zobrazení Aktivita
0
kvě 20
2791
2
kvě 24
1283
1
čvc 23
5658
2
čvc 19
4417
1
dub 15
14055