Odoo Help


How could i set the value for many2one files that depend on value of an other file Odoo 9.0?

on 10/1/16, 4:09 AM 561 views

Hello everyone, I am new to odoo and trying to improve my odoo system, i have create a new many2one files in orderline. Now i would like to set values for this custom files with the specific coditions depend on the products. what is the right way to sovle this kind of problem. Thank for watching. 

--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 10/1/16, 5:21 AM


You need to override this method, it called when the product in the SO line changed. The vals dict hold the new values of the other fields ... for more information about the onchange methods .

Hope this could helps ...

Thanks for your help, i will focus on the onchange method. Have a nice day friend:)

on 10/1/16, 12:28 PM

Hello, what should i do to override the method? create a module or just add the funcion to the custom module? and need i change any thing in the xml fiel?

on 10/1/16, 12:46 PM

Hi, you don't need to change the xml file. the clean methodology is to create a new custom module to override the method ...

Ahmed M.Elmubarak
on 10/3/16, 12:59 AM

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.


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)


Asked: 10/1/16, 4:09 AM
Seen: 561 times
Last updated: 12/10/16, 2:45 AM