Skip to content

Bug in TodoItem.xml on Odoo 14.0-20210204 (Community Edition) #2

Description

@planctron

Cannot overcome this Error when calling the view
Traceback:
Error: Invalid generated code while compiling template 'owl_tutorial_views.TreeItem': Unexpected identifier
at QWeb._compile (http://0.0.0.0:8097/web/content/510-34b6e20/web.assets_common.js:971:133)
at QWeb.fn (http://0.0.0.0:8097/web/content/510-34b6e20/web.assets_common.js:952:105)
at QWeb.render (http://0.0.0.0:8097/web/content/510-34b6e20/web.assets_common.js:959:20)
at PatchableClass.__render (http://0.0.0.0:8097/web/content/510-34b6e20/web.assets_common.js:1279:33)
at PatchableClass.__prepareAndRender (http://0.0.0.0:8097/web/content/510-34b6e20/web.assets_common.js:1277:29)

Error: Invalid generated code while compiling template 'owl_tutorial_views.TreeItem': Unexpected identifier
QWeb Compile

Some Experiment showed:
Error occurs in line 22
t-if="props.countField !== '' and props.item.hasOwnProperty(props.countField)"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions