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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1665
Views
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
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.