Skip to content

Conversation

@katyukha
Copy link

This PR seems to fix following error:

UncaughtPromiseError > OwlError
Uncaught Promise > Invalid props for component 'X2ManyField': unknown key 'canCreate', unknown key 'canOpen', unknown key 'canWrite', unknown key 'canQuickCreate', unknown key 'canCreateEdit', 'context' is missing (should be a object)
OwlError: Invalid props for component 'X2ManyField': unknown key 'canCreate', unknown key 'canOpen', unknown key 'canWrite', unknown key 'canQuickCreate', unknown key 'canCreateEdit', 'context' is missing (should be a object)
    Error: Invalid props for component 'X2ManyField': unknown key 'canCreate', unknown key 'canOpen', unknown key 'canWrite', unknown key 'canQuickCreate', unknown key 'canCreateEdit', 'context' is missing (should be a object)
        at Object.validateProps (http://localhost:17001/web/assets/debug/web.assets_web.js:10744:19) (/web/static/lib/owl/owl.js:3160)
        at X2Many2DMatrixRenderer.template (eval at compile (http://localhost:17001/web/assets/debug/web.assets_web.js:13283:20), <anonymous>:61:21) (/web/static/lib/owl/owl.js:5699)
        at Fiber._render (http://localhost:17001/web/assets/debug/web.assets_web.js:9313:38) (/web/static/lib/owl/owl.js:1729)
        at Fiber.render (http://localhost:17001/web/assets/debug/web.assets_web.js:9305:18) (/web/static/lib/owl/owl.js:1721)
        at ComponentNode.initiateRender (http://localhost:17001/web/assets/debug/web.assets_web.js:9985:23) (/web/static/lib/owl/owl.js:2401)

Not sure if this is correct way to fix it, but it seems that it works.


Thank you for you PR (OCA#3117)

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

Successfully merging this pull request may close these issues.

1 participant