Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3603 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ย. 19
6768
1
ต.ค. 19
3928
1
ส.ค. 25
3526
1
ต.ค. 24
2051
Employee Bank Account Number แก้ไขแล้ว
2
ก.ค. 24
2106