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

Hello ,

i have two models :

model 1 and model 2

in model 1 i have a many2many relation with model 2 like this and other fields:

listrdv = fields.many2many('model2')

----these two fields of my model 1

employee = fields.Char(string='employee')

rdvdate = fields.Char(string='rdv date')

i'm displaying my listrdv on my form view with a tree like this :

       

-----these two fields of my model 2 have the same name of those of model 1

           

           

------- getfieldsvalues is my python method name

           

       

now what i want to do is when i click the button , i get the values of that record (one record) and display them or write them in the fields of my model 1 , like explained in this picture .

meaning : when i click that button , i get the values of that record (only one record , the values of employee and rdvdate) and write them in the fields of my form view of my model 1 employee and rdvdate .

i dont know how to get these values in my function getfieldsvalues , i tried to use this syntax :

self.employee = self.employee 




아바타
취소
관련 게시물 답글 화면 활동
1
11월 22
3419
0
3월 21
2784
2
1월 20
21761
2
5월 18
4092
3
5월 18
5105