Skip to Content
Menu
This question has been flagged
1 Reply
1665 Views

Hello,
I am new to Odoo, and I want to know how would I show products price unit on delivery slip.

Thanks for your help in advance.

Avatar
Discard
Author

First of all, thank you for your answer. Yes, I know how to inherit from an existing report and add fields, but I can't figure out how to get the price unit of product lines defined in the linked sale order.


From the stock move, you can fetch the "sale_line_id" (https://github.com/odoo/odoo/blob/14.0/addons/sale_stock/models/stock.py#L16) which will give you the related sales order line and using that you can have the unit price.

Best Answer

If you know how to inherit an existing report then you just need to inherit the Delivery Slip report in your custom module and add a product price.

Avatar
Discard