Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3137 Zobrazení

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. 

Avatar
Zrušit
Nejlepší odpověď

Hello,

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

Avatar
Zrušit
Autor

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

Autor

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?

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

Related Posts Odpovědi Zobrazení Aktivita
0
bře 16
2801
2
úno 25
6020
1
pro 24
6163
1
pro 24
1537
3
srp 24
7029