[FIX] purchase: correctly extract date from datetime

Oversight of previous forward-port
This commit is contained in:
Christophe Simonis
2019-02-11 14:23:33 +01:00
parent 75eec26da3
commit 6e8dff1952
+1 -1
View File
@@ -374,7 +374,7 @@ class PurchaseOrder(models.Model):
seller = line.product_id._select_seller(
partner_id=line.partner_id,
quantity=line.product_qty,
date=line.order_id.date_order and line.order_id.date_order[:10],
date=line.order_id.date_order and line.order_id.date_order.date(),
uom_id=line.product_uom)
if seller:
supplierinfo['product_name'] = seller.product_name