Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to resolve error "QWebTemplateNotFound: External ID not found in the system: first_odoo_module.index"

By
Phong Vy
on 11/3/16, 4:09 AM 204 views

I' m newbie in odoo and have just created my first module with scaffold. I edit controller.py with


@http.route('/first_odoo_module/first_odoo_module/', auth='public') def index(self, **kw):

         return http.request.render('first_odoo_module.index', { 'teachers' : ['one', 'two', 'three'], })

and  in templates.xml  : <template id="index"> <ul> <li t-foreach="teachers" t-as="teachers"> <t t-esc="teacher"/> </li> </ul> </template>.
then run : "odoo.py -d Test -u first_oddo_module " and got error
QWebTemplateNotFound: External ID not found in the system: first_odoo_module.index
How can I resolve this ?

3

Hilar AK

--Hilar AK--
778
| 4 1 7
Italy
--Hilar AK--


Hilar AK
On 11/3/16, 7:53 AM

Check your __openerp__.py file whether the template residing file is included in data . If so change your template id as first_odoo_module.index

like <template id="first_odoo_module.index"> <ul> <li t-foreach="teachers" t-as="teachers"> <t t-esc="teacher"/> </li> </ul> </template>.


2
Ameera PP
On 11/3/16, 6:23 AM

This is because first_odoo_module.index is not loaded in your database.

0
Phong Vy
On 11/4/16, 3:10 AM

@Ameera PP : How can I make first_odoo_module.index load in my database ? 
@Hilar: I 've tried but it 's not working

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/3/16, 4:09 AM
Seen: 204 times
Last updated: 11/4/16, 3:10 AM