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

[17.0] web_m2x_options error when opening hr.skill.type #2934

Closed
Paulius11 opened this issue Sep 23, 2024 · 8 comments
Closed

[17.0] web_m2x_options error when opening hr.skill.type #2934

Paulius11 opened this issue Sep 23, 2024 · 8 comments
Labels

Comments

@Paulius11
Copy link

Paulius11 commented Sep 23, 2024

Module: hr (Human Resources)
Describe the bug

Developer mode needs to be activated.

An error occurs when trying to access the "hr.skill.type" view in Odoo. The error message indicates that the code is trying to access a property ("kanban") of an undefined variable.
To Reproduce

Affected versions: 17.0

Navigate to the Human Resources module in Odoo.
Try to access the "Skill Types" view (usually under "Configuration").
The error should appear.

Expected behavior
The "Skill Types" view should load and display a list of skill types.

UncaughtPromiseError > TypeError

Uncaught Promise > Cannot read properties of undefined (reading 'kanban')

TypeError: Cannot read properties of undefined (reading 'kanban')

    at FormController._setSubViewLimit (https://odoo.com/web/assets/04b5dff/web.assets_web.min.js:7605:39)

    at FormController.setup (https://odoo..com/web/assets/04b5dff/web.assets_web.min.js:7600:92)

    at FormController.setup (https://odoo..com/web/assets/04b5dff/web.assets_web.min.js:12859:446)

    at new ComponentNode (https://odoo..com/web/assets/04b5dff/web.assets_web.min.js:1002:202)

    at https://odoo..com/web/assets/04b5dff/web.assets_web.min.js:1540:6

    at View.slot1 (eval at compile (https://odoo..com/web/assets/04b5dff/web.assets_web.min.js:1500:374), <anonymous>:13:36)

    at callSlot (https://odoo..com/web/assets/04b5dff/web.assets_web.min.js:1109:25)

    at WithSearch.template (eval at compile (https://odoo..com/web/assets/04b5dff/web.assets_web.min.js:1500:374), <anonymous>:8:12)

    at Fiber._render (https://odoo..com/web/assets/04b5dff/web.assets_web.min.js:940:96)

    at Fiber.render (https://odoo..com/web/assets/04b5dff/web.assets_web.min.js:939:6)
@Paulius11 Paulius11 added the bug label Sep 23, 2024
@Paulius11
Copy link
Author

Also error is triggered only when developer mode is activated and I go to: Time Off -> Management- Time Off

UncaughtPromiseError > OwlError Uncaught Promise > Invalid props for component 'ListMany2ManyTagsAvatarField': unknown key 'fieldColor', unknown key 'fieldColorOptions' OwlError: Invalid props for component 'ListMany2ManyTagsAvatarField': unknown key 'fieldColor', unknown key 'fieldColorOptions' at Object.validateProps (http://localhost:8017/web/assets/9812b32/web.assets_web.min.js:1142:67) at Field.template (eval at compile (http://localhost:8017/web/assets/9812b32/web.assets_web.min.js:1501:374), <anonymous>:17:13) at Fiber._render (http://localhost:8017/web/assets/9812b32/web.assets_web.min.js:940:96) at Fiber.render (http://localhost:8017/web/assets/9812b32/web.assets_web.min.js:939:6) at ComponentNode.initiateRender (http://localhost:8017/web/assets/9812b32/web.assets_web.min.js:1007:47)

@JordiMForgeFlow
Copy link

Hi @Paulius11

Could you test this fix: #2957?

@Paulius11
Copy link
Author

Hello @JordiMForgeFlow

With developer mode enabled, when I navigate to Time Off -> Management -> Time Off, I encounter the following error:

Uncaught Promise > Invalid props for component 'ListMany2ManyTagsAvatarField': unknown key 'fieldColor', unknown key 'fieldColorOptions'
OwlError: Invalid props for component 'ListMany2ManyTagsAvatarField': unknown key 'fieldColor', unknown key 'fieldColorOptions'
    at Object.validateProps (http://localhost:8017/web/assets/77f4d9e/web.assets_web.min.js:1142:67)
    at Field.template (eval at compile (http://localhost:8017/web/assets/77f4d9e/web.assets_web.min.js:1501:374), <anonymous>:17:13)
    at Fiber._render (http://localhost:8017/web/assets/77f4d9e/web.assets_web.min.js:940:96)
    at Fiber.render (http://localhost:8017/web/assets/77f4d9e/web.assets_web.min.js:939:6)
    at ComponentNode.initiateRender (http://localhost:8017/web/assets/77f4d9e/web.assets_web.min.js:1007:47)```

@JordiMForgeFlow
Copy link

@Paulius11 could you try now? I have added some corrections

@Paulius11
Copy link
Author

@JordiMForgeFlow It's working now, thanks for the quick fix!

@Paulius11 Paulius11 reopened this Oct 15, 2024
@Paulius11
Copy link
Author

Paulius11 commented Oct 15, 2024

@JordiMForgeFlow
Found one more place where exception is raised:
In Project -> Tasks -> My Tasks

UncaughtPromiseError > OwlError
Uncaught Promise > Invalid props for component 'KanbanMany2ManyTagsAvatarUserField': unknown key 'fieldColor', unknown key 'fieldColorOptions'
OwlError: Invalid props for component 'KanbanMany2ManyTagsAvatarUserField': unknown key 'fieldColor', unknown key 'fieldColorOptions'
    Error: Invalid props for component 'KanbanMany2ManyTagsAvatarUserField': unknown key 'fieldColor', unknown key 'fieldColorOptions'
        at Object.validateProps (http://localhost:8017/web/assets/a550918/web.assets_web.min.js:1141:67)
        at Field.template (eval at compile (http://localhost:8017/web/assets/a550918/web.assets_web.min.js:1502:374), <anonymous>:17:13)
        at Fiber._render (http://localhost:8017/web/assets/a550918/web.assets_web.min.js:940:96)
        at Fiber.render (http://localhost:8017/web/assets/a550918/web.assets_web.min.js:939:6)
        at ComponentNode.initiateRender (http://localhost:8017/web/assets/a550918/web.assets_web.min.js:1007:47)

@JordiMForgeFlow
Copy link

@Paulius11 should be fixed by #2959

@Paulius11
Copy link
Author

@JordiMForgeFlow Yes, it's fixed now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants