Odoo Ajuda

0

0
5 Respostas
0
Avatar

Ermin Trevisan Suíça

--Ermin Trevisan--
16259
| 7 6 9
Walchwil, Suíça
--Ermin Trevisan--


Ermin Trevisan Suíça
27/06/17 16:37
2
Avatar

Exceptionally Eccentric Índia

--Exceptionally Eccentric --

8683
| 2 2 6
Calicut, Índia
--Exceptionally Eccentric --

Odoo/Python developer

Expert in Python,XML,PSQL,CSS

Exceptionally Eccentric Índia
15/07/19 02:39

Hi,

You can click following button for creating reports in odoo 12  Qweb reports in odoo 12

0
lodhur Alemanha
29/06/17 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?


Faça uma Pergunta
Writer
Marcadores
Keep Informed
1 seguidor (es)
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