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

Dear

I need your help. Please how can I put the parent_id field of the res.company model in the hr.view.employee.form view of the hr.employee model so that it is below the company_id field?
I wish it were like this:

HR Settings
Company                 Aicros
Parent Company     OSDE
Related user            Alberto Mesa

We use Odoo 11.0

I would appreciate your support.

Best regards,
Claudio Zayas

Avatar
Hylkää
Paras vastaus

Hi Claudio, you may need to add a new related field in hr.employee model:

company_parent_id = fields.Many2one(related='company_id.parent_id', string='Company Parent')

After that, just include the field in your form view

Avatar
Hylkää
Tekijä Paras vastaus

Thank you very much! I applied that and all OK!

Avatar
Hylkää

Glad it help!

Please mark your question as solved so we can close the case

Tekijä
Sorry, i do not know how i can do that. Please, can you explain me?

Best regards,
Claudio Zayas

On Tuesday, May 19, 2020, 9:29:59 PM EDT, Ivan Yang <ivan.yangkaivan@gmail.com> wrote:


Glad it help!

Please mark your question as solved so we can close the case

Sent by Odoo S.A. using Odoo.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
marrask. 19
6727
1
lokak. 19
3909
1
elok. 25
3492
1
lokak. 24
1876
2
heinäk. 24
2080