odoo/odoo#158100

Created by fw-bot
Merged at 9b747a8acf1a83ff6598064d0e152f96f45b1634

Statuses:

label
odoo-dev:saas-16.3-15.0-opw-3692985-expVendor-waha-OyTE-fw
head
733a1acf2796cb968914b020e3ed14451c149668
merged
1 year ago by Logistics, William Henrotin (whe)
odoo/odoo
15.0 #157023
16.0 #157860
saas-16.3 #158100
saas-16.4 #158205
17.0 #158650
saas-17.1 #158866
saas-17.2 #158894
18.0
saas-18.1
saas-18.2
saas-18.3
master #159163

[FW][FIX] purchase: fallback to standard price if no pricelist

Steps to reproduce:
- Create pricelist with an end date in the past for a stored product
- Click on manual replenishement
- The created PO will have a price of 0

Bug:
if no valid pricelist is found unit price is set to 0
product standard price is a better fallback

opw-3692985

Forward-Port-Of: #157860
Forward-Port-Of: #157023