跳至內容
選單
此問題已被標幟
2 回覆
3547 瀏覽次數

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

頭像
捨棄
最佳答案

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

頭像
捨棄
作者 最佳答案

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

頭像
捨棄

Glad it help!

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

作者
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.

相關帖文 回覆 瀏覽次數 活動
2
11月 19
6696
1
10月 19
3892
1
8月 25
3474
1
10月 24
1788
2
7月 24
2026