Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Save user input (field.char) into a database

By
Francisco Castro
on 2/19/14, 6:00 AM 581 views

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/

Prakash
on 2/19/14, 7:16 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 2/19/14, 6:00 AM
Seen: 581 times
Last updated: 3/16/15, 8:10 AM