Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4084 Visualizzazioni

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


Avatar
Abbandona
Risposta migliore

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.


Avatar
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
1
feb 23
1980
1
mar 18
3596
1
mag 17
2956
1
gen 16
2965
2
ott 15
6622