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

I just want to check to use the functionality of the "work_permit_upload" widget used in the Work Permit field of hr employee form view odoo 16

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Once you upload an attachment in the corresponding field with work_permit_upload widget and save the form the attachment will be saved in the table ir.attachment with field references.

res_id= corresponding form id
res_model = "hr.employee"
res_field = "has_work_permit

Regards

อวตาร
ละทิ้ง
ผู้เขียน

Thanks For the answer. I'm grateful to you.

But yes, i know that. I have checked the code for this. I want to know the purpose of this widget.

Because this should be done by "attachment=True" attribute in binary field.
So why they don't use the attachment=True attribute and add the widget.

Does the widget has any additional functionality ??

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 24
2033
2
ก.ค. 23
3908
1
มิ.ย. 23
2861
1
พ.ค. 25
2435
1
เม.ย. 25
3455