Odoo Help

Welcome!

This community 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.

0

How to Change the Report Names in the Print Drop Down:

By
Nigel Butler
on 3/4/16, 6:45 AM 447 views

There are 2 reports in the print menu for delivering an order: "Picking Operation" and "Delivery Slip"

I want these to read "Delivery Note" and "Route Card"

I could do this by editing "stock_report.xml" within the module stock, but I want to do this using a custom module and not just by editing the original XML file.  

I can add  "Delivery Note" and "Route Card" to the print menu perfectly by just adding the following to my apps XML file:


<report string="Delivery Note"

id="action_report_picking"

model="stock.picking"

report_type="qweb-pdf"

name="stock.report_picking"

file="stock.report_picking_operations" />

<report string="Route Card"

id="action_report_delivery"

model="stock.picking"

report_type="qweb-pdf"

name="stock.report_deliveryslip"

file="stock.report_deliveryslip" />


But the original   "Picking Operation" and "Delivery Slip" still remain.

If this was a View, I could inherit it, and change the XML, but I cannot see where this appears in any Views I can reference.


Regards,


Nigel

1
CatsandDogs
On 3/4/16, 8:11 AM

Use below code:

<report string="Delivery Note"
id="stock.action_report_picking"
model="stock.picking"
report_type="qweb-pdf"
name="stock.report_picking"
file="stock.report_picking_operations" />

<report string="Route Card"
id="stock.action_report_delivery"
model="stock.picking"
report_type="qweb-pdf"
name="stock.report_deliveryslip"
file="stock.report_deliveryslip" />

That's great CatsandDogs, thanks for your help. I don't really understand how adding stock to the start of the ID overwrites the original. What is it doing here?

Nigel Butler
on 3/4/16, 8:39 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/4/16, 6:45 AM
Seen: 447 times
Last updated: 3/4/16, 8:34 AM