Comment 15 for bug 943359

Revision history for this message
Eric (0cs935k-eric-wz6bkyh) wrote :

It looks like in view_header_get in account_move_line.py, context['period_id'] is returning a date (string) and not an id (integer) like it should be.

It's a band aid fix, but changing

cr.execute('SELECT code FROM account_period WHERE id = %s', (context['period_id'], ))

to

cr.execute('SELECT code FROM account_period WHERE code = %s', (context['period_id'], ))

seems to make it behave as intended for now.