title: 0 ValueError The _name attribute report.test_module.report_test_doc is not valid. [Qweb- Odoo]
body: <p>I'm trying to use report parser, but it always pop an error </p>
  
  <pre><code>ValueError  The _name attribute report.test_module.report_test_doc is not valid
  </code></pre>
  
  <p>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.</p>
  
  <p><strong>report.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;openerp&gt;
      &lt;data&gt;
          &lt;report 
              id="eport_monthly_pdc"
              string="Monthly report of PDC"
              model="account.voucher"
              report_type="qweb-pdf"
              name="test_module.report_test_doc" 
              file="test_module.report_test_doc" 
          /&gt;
      &lt;/data&gt;
  &lt;/openerp&gt;
  </code></pre>
  
  <p><strong>report_parser.py</strong></p>
  
  <pre><code>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)
          self.localcontext.update({     
              '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 = report_parser
  </code></pre>
  
  <p><strong>report_test_doc.xml</strong></p>
  
  
  
  <pre><code>&lt;openerp&gt;
  &lt;data&gt; 
  &lt;template id="report_test_doc"&gt;
      &lt;t t-call="report.html_container"&gt;
          &lt;t t-foreach="docs" t-as="o"&gt;
              &lt;t t-call="test_module.report_test_layout"&gt;
                  &lt;div class="page"&gt;
                      &lt;div class="text-center"&gt;
                          &lt;span t-esc="hello_world()"/&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/t&gt;
          &lt;/t&gt;
      &lt;/t&gt;
  &lt;/template&gt;
  &lt;/data&gt;
  &lt;/openerp&gt;
  </code></pre>