Skip to Content
Menu
This question has been flagged
1 Reply
1920 Views

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












Avatar
Discard
Best Answer

Hi,
Please refer the below blog to how to create a new view type in odoo 16


How to Create a New View Type in Odoo 16 

Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
0
Apr 24
1975
0
Nov 23
1551
1
Aug 23
4677
2
Jun 23
3996
1
Jun 23
3558