mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-10-25 07:27:39 -05:00
Merge branch 'master-upstream-patch-27102023' into 'master'
[PATCH] Upstream patch - 27102023 See merge request flectra-hq/flectra!1173
This commit is contained in:
commit
26c194f637
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user