Skip to Content
Menu
This question has been flagged
861 Views
Hello,
I customized the HR module.
I have add cust fields.
now I would like to add a report.
Always the same error: "Error: External ID not found in the system: hr. Employee_file"
here is my code.
Thank you
_manifest_.py

{
'name': 'Gestion du personnel ',
'version': '1.0',
'category': '',
'sequence': 5,
'summary': 'Module gestion personnel pour - modification du module employé existant',
'description': "Module de gestion du personnel et sous traitants",
'website': 'https://www.dimdim.be',
'depends':['base','hr','fetchmail','digest','mail',],
'data': [
#
'views/custom_employees_view.xml',
'reports/fiche_collaborateur.xml'
],
'demo': [
'',
],
'css': [''],
'installable': True,
'application': False,
'auto_install': False
}


fiche_collaborateur.xml
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<report
id="hr_fiche_collaborateur"
string="Fiche Collaborateur"
model="hr.employee"
report_type="qweb-pdf"
name="hr.fiche_collaborateur"
file="hr.fiche_collaborateur"
print_report_name="'Print fiche - %s' % (object.name).replace('/', '')"
/>
<template id="fiche_collaborateur">

<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="web.external_layout">

<div class="page">
<div class="oe_structure" >
<h1 class="text-center" style="font-family: 'Ubuntu'; font-size: 26px !important;">FICHE COLLABORATEUR</h1>
<h2 class="text-center"><span t-raw="o.name"/></h2>
</div>
</div>
</t>
</t>
</t>

</template>
</odoo>

Avatar
Discard