Skip to Content
Menu
This question has been flagged
1 Reply
6251 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

Avatar
Discard
Best Answer

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" />
Avatar
Discard
Author

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?