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

I want to add the effective_hours in crm.helpdesk model. How can I do that?

I have made a field like this: with this field I select the right task.


'task_helpdesk': fields.many2one('project.task', 'task_id', select=True),

Now everytime the "effective_hours" from this task_id changes. It should display in crm.helpdesk model.

How can I make that ?


Thank you


아바타
취소
베스트 답변

Okay, task_helpdesk field in crm.helpdesk model and you want to add effective_hours field in task_helpdesk model.

You can make fields.related

Ex.

'effective_hours':fields.related('task_helpdesk','effective_hours',type='float',string="Effective Hours"),

I hope this is helpfull for you.


아바타
취소
작성자

wow, I tried this way x times, but your solution works. I need to check what I've done wrong with that, THANK YOU

관련 게시물 답글 화면 활동
1
2월 23
2106
Database Odoo 해결 완료
1
3월 18
3737
1
5월 17
3069
1
1월 16
3132
2
10월 15
6785