콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3036 화면

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. 

아바타
취소
베스트 답변

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

아바타
취소
작성자

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

작성자

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

관련 게시물 답글 화면 활동
0
3월 16
2728
2
2월 25
5918
1
12월 24
6081
1
12월 24
1468
3
8월 24
6927