I am trying to build a new view in my odoo 16 custom app, and I followed the instruction below.
link to odoo tut
But it jumped out an error which is:
ValueError: Template name is missing in file 'test_view/beautiful_controller.xml'
.
Template: web.webclient_bootstrap
Path: /t/t/t[1]/t[4]
Node:
I just copy&paste the codes from the tut and add those files in the manifest file like this:
{
'name':'my_odoo',
'version':'1.0',
'depends':[
'mail'
],
'data':[
'security/leasing_security.xml',
'security/ir.model.access.csv',
],
'assets':{
'web\.assets_backend':[
'test_js/beautiful_arch_parser.js',
'test_js/beautiful_controller.js',
'test_js/beautiful_model.js',
'test_js/beautiful_renderer.js',
'test_js/beautiful_view.js',
'test_view/beautiful_controller.xml',
'test_view\\beautiful_renderer.xml',]},
'application':True}
I've tried to add these xml file into the __manifest__ file like code block below, but none of them worked.
'qweb': [ 'test_view/beautiful_controller.xml',
'test_view/beautiful_renderer.xml',]
or
'web.assets_qweb': [
'test_view/beautiful_controller.xml',
'test_view/beautiful_renderer.xml',
]
and the beautiful_controller.xml looks like this: and other file is just copy&paste from the tut.
Did i missed something? Anyone who knows how to solve this problem would be appreciated!
- beautiful_controller.xml
