From c51cfbc58b826fdaa9ccda17b4a0dc1759ed06f5 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 17 Aug 2018 09:29:43 +0200 Subject: [PATCH] [FIX] purchase: use date everywhere in report account_invoice.date is a date field purchase_order.date_order is a datetime field --- addons/purchase/report/purchase_bill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/report/purchase_bill.py b/addons/purchase/report/purchase_bill.py index 1c91fd7866a..07dd4bb9d34 100644 --- a/addons/purchase/report/purchase_bill.py +++ b/addons/purchase/report/purchase_bill.py @@ -33,7 +33,7 @@ class PurchaseBillUnion(models.Model): type='in_invoice' and state in ('open','in_payment','paid','cancel') UNION SELECT - -id, name, partner_ref, partner_id, date_order as date, amount_untaxed as amount, currency_id, company_id, + -id, name, partner_ref, partner_id, date_order::date as date, amount_untaxed as amount, currency_id, company_id, NULL as vendor_bill_id, id as purchase_order_id FROM purchase_order WHERE