Odoo Aide

0

0
3 Answers
0
Avatar

Ermin Trevisan

--Ermin Trevisan--
15231
| 7 6 9
Walchwil, Suisse
--Ermin Trevisan--


Ermin Trevisan
27/06/2017 16:37
0
lodhur
29/06/2017 10:20

Thanks for your answers. 

I had a look at the manual. This specific manual is for changing an existing report. My aim is to add a new report. 


Nevertheless I inherited the account.invoice module in my module in the following way: 

from openerp import models, fields, api
 class custom_vierimpott(models.Model):
     _name = 'custom_module.custom_module'
  _inherit="account.invoice"
     name = fields.Char()

Furthermore I wrote in my report.xml:

<openerp>
    <data>
        <report 
            id="custom_report_without_prices"
            model="account.invoice"
            string="Invoice without prices"
            report_type="qweb-pdf"
            name="custom_module.report_without_prices"
            attachment_use="False"
            file="custom_module.custom_module"
        />
    </data>
</openerp>

After this I refreshed the module. Unfortuneatly there were no results. That means under Invoicing I can only print the default invoice-report.

What is wrong in my approach?


Poser une question
Writer
Étiquettes
Keep Informed
1 Abonné(e)s
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now