Odoo Help

0

Get values from UI

By
José
on 12/5/14, 2:53 PM 568 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?

Thanks!

4

Nehal

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

You can get values of the user entries using vals['your_field_name']. 
e.g.
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.

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

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