跳至内容
菜单
此问题已终结
1 回复
2535 查看

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 ??

相关帖文 回复 查看 活动
1
5月 24
2030
2
7月 23
3901
1
6月 23
2851
1
5月 25
2426
1
4月 25
3441