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

Hello Odoo Community:

   I'd like to display sales revenues of the corresponding salesperson/employee in the payroll model. Would you please let me know how to create a custom field and how to relate that field to the sale.order model? (is it Many2One relationship?) Thank you so much!

아바타
취소
작성자

I now create a custom field x_goal that has a Many2One relationship with model gamification.goal, and I got field current under the model gamification.goal for selected employee/user_id at defined time period; however, I need a float/monentary field type that can display the current value (gamification.goal); Please let me know how to achieve this? Do I need to create another field that is related to x_goal? Or can I compute x_goal, and autoselect and display only the current value? Thanks a lot!

베스트 답변

Hi,

Please refer to this blog for Adding Monetary Fields in Odoo:

How to Add  Monetary Fields in Odoo


Hope it helps

아바타
취소
베스트 답변

Hi 

Check this references to add fields and relational fields 

How To Add Related Fields Using Odoo Studio

Add Fields


Regards

아바타
취소
관련 게시물 답글 화면 활동
1
9월 25
568
1
5월 25
1801
1
3월 25
1600
0
2월 25
1912
1
12월 24
2236