Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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?

Awatar
Odrzuć

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/

Powiązane posty Odpowiedzi Widoki Czynność
0
maj 20
2826
2
maj 24
1345
1
lip 23
5748
2
lip 19
4493
1
kwi 15
14107