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

How do i get a field without passing it as an argument?

By
AJ Schrafel Paper Corp
on 10/31/13, 5:13 PM 571 views

In sale.order.line product_id_change is used a few times and has lots of arguments passed to it.

i want to make a custom module that inherits this function, but i don't want to have to add arguments to it. Is there a way to retrieve the current value of a field from a form without passing a field as an argument?

I have tried self.read() and self.browse() that will return the value that is stored in the database, not the value that is presently in the field. So if i type something, the prior value is called from the database, not the value i just typed.

context does not seem to store my field.

what can i do retrieve the value as it is typed?

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: 10/31/13, 5:13 PM
Seen: 571 times
Last updated: 3/16/15, 8:10 AM