Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow_timesheet field is not accessible for user without 'hr_timesheet.group_hr_timesheet_user' #624

Open
2 tasks
sergiocorato opened this issue Sep 16, 2024 · 0 comments

Comments

@sergiocorato
Copy link
Contributor

sergiocorato commented Sep 16, 2024

The field is added in this view:

<record id="timesheet_helpdesk_ticket_view_form" model="ir.ui.view">

wich is accessible only from 'hr_timesheet.group_hr_timesheet_user', so this domain cannot be applied:

>{'required': [('allow_timesheet', '=', True)]}</attribute>

with this error:

Error: While parsing modifiers for field project_id: for modifier "required": Unknown field allow_timesheet in domain
    at Class._registerModifiers (https://odoo.pretecno.com/web/content/23035-9ca47e3/web.assets_backend.js:1690:160)
    at Class._renderFieldWidget (https://odoo.pretecno.com/web/content/23035-9ca47e3/web.assets_backend.js:1698:296)
    at Class._renderFieldWidget (https://odoo.pretecno.com/web/content/23035-9ca47e3/web.assets_backend.js:2274:13)
    at prototype.<computed> [as _renderFieldWidget] (https://odoo.pretecno.com/web/content/23034-d908d5b/web.assets_common.js:4660:488)
    at Class._renderInnerGroupField (https://odoo.pretecno.com/web/content/23035-9ca47e3/web.assets_backend.js:2284:381)
    at https://odoo.pretecno.com/web/content/23035-9ca47e3/web.assets_backend.js:2281:44
    at Array.forEach (<anonymous>)
    at Class._renderInnerGroup (https://odoo.pretecno.com/web/content/23035-9ca47e3/web.assets_backend.js:2278:75)
    at Class._renderTagGroup (https://odoo.pretecno.com/web/content/23035-9ca47e3/web.assets_backend.js:2294:248)
    at Class._renderNode (https://odoo.pretecno.com/web/content/23035-9ca47e3/web.assets_backend.js:2286:244
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant