Skip to Content
Menu
This question has been flagged
2 Replies
3656 Views

Hello

I have a small problem in my qweb report, i get error :

Internal Server Error.


in my file "rapport_bc.xml :

<?xml version="1.0" encoding="utf-8"?>

<openerp>

<data>

<report

id="rapport_bc"

string="Bon de commande"

model="sale.order"

report_type="qweb-pdf"

file="sale.model_bc"

name="sale.model_bc"

/>

</data>

</openerp>

  

and in my file "model_bc.xml'

<openerp>

<data>

<template id="model_bc_doc">

<t t-call="report.html_container">

<t t-foreach="docs" t-as="o">

<t t-call="report.external_layout">

<div class="page">

<h2>Report title</h2>

<p>This object's name is <span t-field="o.name"/></p>

</div>

</t>

</t>

</t>

</template>

<template id="model_bc">

<t t-call="report.html_container">

<t t-foreach="doc_ids" t-as="doc_id">

<t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', sale.model_bc_doc')"/>

</t>

</t>

</template>

</data>

</openerp>


i reference my report in "__openerp__.py"

"init_xml": [],

'update_xml': [

'new_sale_view.xml',

'rapport_bc.xml',

'model_bc.xml',

],

Avatar
Discard

Have you checked the Odoo logfile?

Best Answer

Are you developing/added report in sale module. If yes, than ok. but if you are developing report through your custom module, then you have to replace,

sale.model_bc with your_module_name.model_bc
sale.model_bc_doc
with 
your_module_name.model_bc_doc

And then try to upgrade module, report working well.

Avatar
Discard
Related Posts Replies Views Activity
4
Nov 24
5238
1
Mar 24
398
3
Sep 23
22661
0
Feb 24
1718
1
Oct 22
2791