This question has been flagged
4 Replies
26226 Views

I am new to Odoo. I am trying to create a demo webpage in Odoo 11 as per https://www.odoo.yenthevg.com/creating-webpages-controllers-odoo10/

I am getting following error. Please help me to resolve this.

'c:\program files (x86)\odoo 11.0\server\odoo\addons\create_webpage_demo\views\example_webpage.xml' does not fit the required schema ! and AssertionError: Document does not comply with schema


Avatar
Discard
Best Answer

Check also your manifest:
Maybe you try to load an QWEB-File in data-Object

  'data': [
    'views/something.xml',
    # Wrong: 'static/src/xml/your_xml.xml'
],
    'qweb': [
   'static/src/xml/your_xml.xml'
],
Avatar
Discard
Author Best Answer

Thank you very much.

I changed the code from '<template id="example_page" name="Example page" page="True"> to

<template id="example_page" name="Example page" >  and it worked. 


Avatar
Discard
Best Answer


Check if this tag properly defined.


<odoo>

<data>

       </data>                       

</odoo>


OR


<openerp>

<data>

       </data>                       

</openerp>


Avatar
Discard
Best Answer

Hi,

There is something wrong in the file example_widget.xml file you have added. Either it can be capital letter instead of small letter. Please update the question along with the above file or cross check the corresponding file comparing with the file in the link you refered.


Thanks

Avatar
Discard