diff options
| author | Martin Trigaux <mat@odoo.com> | 2018-08-17 09:29:43 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-08-17 13:14:51 +0200 |
| commit | c51cfbc58b826fdaa9ccda17b4a0dc1759ed06f5 (patch) | |
| tree | ad67e5dd1a460b546d2f5a3b701ed0c042fb9618 | |
| parent | f83c31363149c9a9e8d47b5a502b8294bf331b05 (diff) | |
[FIX] purchase: use date everywhere in report
account_invoice.date is a date field
purchase_order.date_order is a datetime field
| -rw-r--r-- | addons/purchase/report/purchase_bill.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
