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

I am encountering the named error after upgrading to version 17. When I edit the view "hr.user.preferences.view.form.attendance.inherit" and remove the lines

```

28             <xpath expr="//group[@name='managers']" position="inside">

29                 <field name="attendance_manager_id" string="Attendance" widget="many2one_avatar_user"/>

30             </xpath>
```

That works fine. So I suppose this is there the not allowed field comes in.

Since this is without any further modification from my side, I am quite curious to understand why only the group "Attendances / Administrator" would be allowed and why this is the default). 

And ofc Id be very interested in how I can fix that. 

Аватар
Отменить
Автор Лучший ответ

I digged a little deeper, according to my abilities, and found:

    attendance_manager_id = fields.Many2one(

        'res.users', store=True, readonly=False,

        domain="[('share', '=', False), ('company_ids', 'in', company_id)]",

        groups="hr_attendance.group_hr_attendance_manager",

        help="The user set in Attendance will access the attendance of the employee through the dedicated app and will be able to edit them.")

It seems that field is limited to the group "hr_attendance.group_hr_attendance_manager" which precisely is called "Attendance / Administrator".

My conclusion from that is, that this must be a bug of some kind, because this is used in the res.users view in the button for checking the attendance times. Can anyone confirm?

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