Merge branch 'master-upstream-patch-27102023' into 'master'

[PATCH] Upstream patch - 27102023

See merge request flectra-hq/flectra!1173
This commit is contained in:
Parthiv Patel committed 2023-10-27 12:48:28 +00:00
commit 26c194f637
1 file changed
+2 -1
+2 -1
View File
@@ -1220,10 +1220,11 @@ class PurchaseOrderLine(models.Model):
uom_po_qty = product_uom._compute_quantity(product_qty, product_id.uom_po_id)
# _select_seller is used if the supplier have different price depending
# the quantities ordered.
today = fields.Date.today()
seller = product_id.with_company(company_id)._select_seller(
partner_id=partner,
quantity=uom_po_qty,
date=max(po.date_order and po.date_order.date(), fields.Date.today()),
date=po.date_order and max(po.date_order.date(), today) or today,
uom_id=product_id.uom_po_id)
taxes = product_id.supplier_taxes_id