Odoo Help


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.


Get values from UI

on 12/5/14, 2:53 PM 468 views

Hello, in Odoo 8 I override a "create" method, which occurs when the user presses "Save". I want to get the values that the user enters in the form, because I need to work with them.

How can I get these values from Python code of the module?




| 5 2 8
Ahmadabad, India
On 12/5/14, 11:18 PM

You can get values of the user entries using vals['your_field_name']. 
def create(cr, uid, vals, context): 
Suppose you have a field:'partner_id', then you can get values of partner_id field using vals['partner_id']. 
Hope this information helps.

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

1 follower(s)


Asked: 12/5/14, 2:53 PM
Seen: 468 times
Last updated: 3/16/15, 8:10 AM