56
58
def _to_pay_search(self, cr, uid, obj, name, args, context=None):
61
61
line_obj = self.pool.get('account.move.line')
62
query = line_obj._query_get(cr, uid, context={'all_fiscalyear': True}) # fix Noviat to include open entries from previous fy's
64
64
where = ' and '.join(map(lambda x: '''(SELECT
65
65
CASE WHEN l.amount_currency < 0