Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4074 Widoki

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


Awatar
Odrzuć
Najlepsza odpowiedź

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.


Awatar
Odrzuć
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

Powiązane posty Odpowiedzi Widoki Czynność
1
lut 23
1942
Database Odoo Rozwiązane
1
mar 18
3578
1
maj 17
2940
1
sty 16
2963
2
paź 15
6606