Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4170 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
helmik. 23
2043
Database Odoo Ratkaistu
1
maalisk. 18
3681
1
toukok. 17
3005
1
tammik. 16
3051
2
lokak. 15
6712