[FIX] account: where_clause in function _credit_debit_get
[FIX] account: where_clause in function _credit_debit_get

The where_clause needed a "AND" to work.
The where_clause didn't contain allias for "account_move_line" so when
injecting a condition with "account_move_line" it crashed.

opw:702538

bplancher/odoo,Elico-Corp/odoo_OCB,dfang/odoo,dfang/odoo,ygol/odoo,Elico-Corp/odoo_OCB,hip-odoo/odoo,laslabs/odoo,bplancher/odoo,storm-computers/odoo,bplancher/odoo,ygol/odoo,laslabs/odoo,ygol/odoo,hip-odoo/odoo,storm-computers/odoo,storm-computers/odoo,hip-odoo/odoo,storm-computers/odoo,Elico-Corp/odoo_OCB,ygol/odoo,ygol/odoo,dfang/odoo,bplancher/odoo,laslabs/odoo,ygol/odoo,hip-odoo/odoo,bplancher/odoo,storm-computers/odoo,Elico-Corp/odoo_OCB,dfang/odoo,laslabs/odoo,hip-odoo/odoo,dfang/odoo,laslabs/odoo,laslabs/odoo,storm-computers/odoo,dfang/odoo,hip-odoo/odoo,Elico-Corp/odoo_OCB,Elico-Corp/odoo_OCB,bplancher/odoo,ygol/odoo