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

Hello Expert,

Hope Somebody help me with this topic! So I'm new to odoo and I'm trying to use compute Fields

Here is the situation i have transactions and agents where every transaction has a specific agent

My question is:

I want to put a field on Agents that calculate automatically the number of transaction of the related agent

I know i can use Computed Field so i put field on agents and name it "Total Transactions" and go to odoo studio and trying to put in the compute field the rule without any chance

can somebody guide me how can i do this or maybe give me an example similar to this situation

Thanks

아바타
취소
베스트 답변

Hi,
if you have reference to agent inside the transaction model, then easily you can get it using compute field.

See:  How To Add Compute Field From User Interface In Odoo



Thanks

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

Hello Niyas,

Thank you for your quick answer

So i put in compute this code

but i always get 0 even after adding transactions for a specific agent, could you please look at the code and tell me if I'm doing anything wrong

Thanks

아바타
취소
관련 게시물 답글 화면 활동
1
6월 25
15738
3
4월 25
6084
1
1월 24
2063
1
7월 22
2430
4
3월 24
11337