Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2110 Представления

I am developing a module that allows users to attach supporting documents when the absence is approved, here you can see my code:

xml version="1.0" encoding="utf-8"?>


id="hr_leave_view_form" model="ir.ui.view">
name="name">hr.leave.view.form
name="inherit_id" ref="hr_holidays.hr_leave_view_form"/>
name="model">hr.leave
name="arch" type="xml">
expr="//label[@for='supported_attachment_ids']" position="attributes">
name="attrs">{'invisible': [('leave_type_support_document', '=', False)]}
 

expr="//field[@name='supported_attachment_ids']" position="attributes">
name="attrs">{'invisible': [('leave_type_support_document', '=', False)]}
 

 

 





The view works and shows the section to upload the document when the absence is approved, but the problem appears when a user who is not an absence administrator tries to upload a document, he/she simply cannot because he/she does not have permissions to do so.


Can anyone help me to know how I can give permissions so that all non-administrator users can upload documents?

Thanks

Аватар
Отменить

Check access rights for the users

Related Posts Ответы Просмотры Активность
1
янв. 17
4658
3
мар. 24
2723
1
янв. 24
860
1
февр. 24
1598
0
июн. 23
2572