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

i need to write code that takes a computed field, the find out if there is model/s related to it, and get the model name dynamically,


for example:

i have in pos.order model there is the amount_total field:

amount_total = fields.Float(compute='_compute_amount_all', string='Total', digits=0)

the amount total is computed form pos.order.line ,  but if i want a way to get the model name dynamically from the code


아바타
취소
관련 게시물 답글 화면 활동
2
12월 22
7453
1
6월 25
15506
3
4월 25
5717
0
12월 24
1447
Compute Fields 해결 완료
2
7월 24
3479