Odoo Help


ValueError The _name attribute report.test_module.report_test_doc is not valid. [Qweb]

Samantha Cruz
on 3/3/16, 10:53 PM 1,149 views

I'm trying to use report parser, but it always pop an error 

ValueError  The _name attribute report.test_module.report_test_doc is not valid
I searched that your report name is use for the parser _template and _name in order to be used by Odoo. It doesn't show the error if I remove the test_module, but the hello() is not callable.


<?xml version="1.0" encoding="utf-8"?>
string="Monthly report of PDC"


from openerp import api, models
from openerp.report import report_sxw
import time
class report_parser(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(report_parser, self).__init__(cr, uid, name, context=context)
'time': time,
'hello_world': self._hello,
def _hello(self):
return "Hello World!"

class report_parser_test(models.AbstractModel):
_name = 'report.test_module.report_test_doc'
_inherit = 'report.abstract_report'
_template = 'test_module.report_test_doc'
_wrapped_report_class = pdc_report_parser

Jaydeep Barot (jar)
On 3/9/16, 2:31 AM
use this code in report_parser.py file.
_wrapped_report_class = report_parser

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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/3/16, 10:53 PM
Seen: 1149 times
Last updated: 3/9/16, 2:31 AM