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

Hello everyone 


I would like to create a server action that could change all the parameters of my model based on another model. For example, I have my first model called Alpha, which has a name and a number, and a second model called Beta, which also has a name and a number but has a many-to-one relationship with Alpha. So, through the action server, I want Beta to take the same name and number as Alpha.


I am using odoo 16 studio

아바타
취소
작성자 베스트 답변

Hello, thx for your answer i will try with a related field but the problem it is that it asked to me to use a server controller.

And i don't understand how could i do.


아바타
취소
베스트 답변

Hello,

You can create the fields on the Beta model (name, number) as related field of the Alpha model.Here I am giving an example of adding a related field (Customer Name) to the sale order model (using studio) which fetches the name of customer from the ‘customer’ field.Please try refer on it.




Regards

아바타
취소
관련 게시물 답글 화면 활동
0
8월 25
7
2
8월 25
335
1
9월 25
384
1
9월 25
306
0
8월 25
309