تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
1273 أدوات العرض

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
سبتمبر 25
556
1
مايو 25
1768
1
مارس 25
1589
0
فبراير 25
1889
1
ديسمبر 24
2212