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

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
فبراير 23
1987
Database Odoo تم الحل
1
مارس 18
3606
1
مايو 17
2966
1
يناير 16
2971
2
أكتوبر 15
6627