I am at this for hours and can not figure it out. I am trying to print a form from a module I created. I keep getting the below error when I click the print button.
raise ValueError('External ID not found in the system: %s' % (xmlid))
ValueError: External ID not found in the system: ch08.qweb_ds_repair_template
My report.xml file
<?xml version="1.0" encoding= "utf-8"?>
<openerp>
<data>
<template id="qweb_ds_repair_template">
<t t-call="report.html_container" >
<t t-foreach ="docs" t-as="o">
<t t-call ="report.external_layout">
<div class="page" >
<div class="oe_structure" />
<h1>Repair Form</h1>
<h2>Test: <span t-field="o.password"/></h2>
</div>
</t>
</t>
</t>
</template>
<report id="report_ds_repair_template"
name="ch08.qweb_ds_repair_template"
model="ds.repair"
string="Repair Form"
report_type="qweb-pdf"
/>
</data>
</openerp>
My module folder is called ds_repair. Not sure if I an missing a dependency in my openerp.py so here it is below
{
'name': 'Repairs',
'version': '1.0',
'sequence': 200,
'category': 'Manufacturing',
'summary': 'Repair',
'description': """,
The aim is to have a complete module to manage all products repairs.
====================================================================
""",
'depends': ['base'],
'website': '',
'data': ['report/report.xml',
'model_view.xml',
],
'demo': [],
'installable': True,
'auto_install': False,
}
your module folder name is "ds_repair" so you should write name="ds_repair.qweb_ds_repair_template"
<report id="report_ds_repair_template"
name="ds_repair.qweb_ds_repair_template"
model="ds.repair"
string="Repair Form"
report_type="qweb-pdf"
/>