Odoo Help

0

0
3 Answers
1

Simple :

find report_saleorder_document report into odoo reports menu.
find code of qweb report code <span t-field="line.name"/> replace it will <td><span t-field="line.product_id.name"/></td>

only report name will come.

This you can do from odoo front end also and create new module and inherit report_saleorder_document report into it and change code.

0
Marc Vanderstigel
5/23/19, 5:30 AM

Thanks Bhaviraj !

So I tried what you said:

Under report_invoice_document, I changed the line:

<td><span t-field="l.name"/></td>
By:
<td><span t-field="l.product_id.name"/></td>

See here: https://ibb.co/7bjn7r6

After reloading Odoo under a private window and printing a PDF invoice, here is the result: https://ibb.co/LxYTKjC

So I still have the default_code appearing inside [] brackets. I would like it to disappear. Any idea why it didn't work?

3 Comments
Bhaviraj Brahmkshatriya
5/23/19, 5:56 AM

It works fine as i checked, But make sure, report is not loading from attachment. as report configuration is there, which gives options that old reports which are printed load from there.

Marc Vanderstigel
5/23/19, 6:10 AM

When I click on Print invoice: https://ibb.co/PTYV3xb

When I click on invoice under attachement: https://ibb.co/G5PSCM8

It is the same, default_code inside [] brackets is still here.

Are you sure you checked for report_invoice_document ? Because in your first answer you were talking about report_salesorder_document

Bhaviraj Brahmkshatriya
5/24/19, 1:56 AM

Yes i am sure.

Ask a Question
Keep Informed
2 follower(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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now