[FIX] account: fix error when trying to open manual reconciliation from accounting menu

closes odoo/odoo#31785

Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
This commit is contained in:
Cedric Snauwaert
2019-03-12 10:30:33 +00:00
parent 0d33e7d28c
commit 4e110972fa
@@ -356,7 +356,7 @@ class AccountReconciliation(models.AbstractModel):
res_type == 'partner' and ", to_char(last_time_entries_checked, 'YYYY-MM-DD') AS last_time_entries_checked" or ' ',
res_type == 'partner' and 'p.last_time_entries_checked AS last_time_entries_checked,' or ' ',
res_type == 'partner' and ', p.last_time_entries_checked' or ' ',
res_type == 'partner' and 'ORDER BY p.last_time_entries_checked' or 'a.code',
res_type == 'partner' and 'ORDER BY p.last_time_entries_checked' or 'ORDER BY a.code',
res_type == 'partner' and 'WHERE (last_time_entries_checked IS NULL OR max_date > last_time_entries_checked)' or ' ',
))
self.env.cr.execute(query, locals())