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.
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.