Hello I'm trying to create a module that inherits the mrp.workcenter model and adds up a menu that opens up a wizard and creats a qweb report based on the OEE's of my workcenters
When I try to install my module it gives me the following error, I've checked several times the template id and its correct due to my declaration in the python code, any help would be appreciated! thanks
Error:
File "/opt/odoo/odoo-server/odoo/tools/convert.py", line 251, in _test_xml_id
assert modcnt == 1, """The ID "%s" refers to an uninstalled module""" % (xml_id,)
ParseError: "The ID "oee_general_report_qweb.report_oee_qweb" refers to an uninstalled module" while parsing None:3, near
<t t-name="oee_general_report_qweb.report_oee_qweb">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<t t-set="title">OEE Report</t>
<t t-set="company_name" t-value="o.company_id.name"/>
<div class="act_as_row">
From: <span t-field="o.date_from"/> To <span t-field="o.date_to"/>
</div>
</t>
</t>
</t>
Python code
from odoo import models, fields, api, _
class OEEReport(models.TransientModel):
_name = 'report_oee_qweb'
date_from = fields.Date()
date_to = fields.Date()
company_id = fields.Many2one(comodel_name='res.company')
class OEEReportCompute(models.TransientModel):
_inherit = 'report_oee_qweb'
@api.multi
def print_report(self):
return self.env['report'].get_action(self, 'oee_general_report_qweb.report_oee_qweb')
XML File
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="oee_general_report_qweb.report_oee_qweb">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<t t-set="title">OEE Report</t>
<t t-set="company_name" t-value="o.company_id.name"/>
<div class="act_as_row">
From: <span t-field="o.date_from"/> To <span t-field="o.date_to"/>
</div>
</t>
</t>
</template>
</odoo>