Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4089 Vizualizări

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


Imagine profil
Abandonează
Cel mai bun răspuns

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.


Imagine profil
Abandonează
Autor

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

Related Posts Răspunsuri Vizualizări Activitate
1
feb. 23
1985
1
mar. 18
3598
1
mai 17
2964
1
ian. 16
2966
2
oct. 15
6625