跳至內容
選單
此問題已被標幟
1 回覆
4080 瀏覽次數

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
1976
Database Odoo 已解決
1
3月 18
3594
1
5月 17
2949
1
1月 16
2964
2
10月 15
6618