Files
odoo_source/addons/pos_sale_margin
roen-odoo c00efede3b [FIX] pos_sale_margin: correctly compute margin when no cost is set
Current behavior:
If there was no cost set on a product, the margin couldn't be calculated
for the PoS sale report.

Steps to reproduce:
- Install PoS and Sales
- Create a product with no cost
- Open a session and make an order with this item
- Close the session and go to the PoS sale report
- Add the margin measure to the report, and show the stats by product
- The new product does not have any margin.

opw-3120208

closes odoo/odoo#110429

X-original-commit: 9105f803095d7ddb07bc62ec1e2f2982215e273e
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
Signed-off-by: Engels Robin (roen) <roen@odoo.com>
2023-01-19 18:49:53 +01:00
..