260
260
# Get the period for the statement (as bank statement object checks this)
261
261
period_ids = period_obj.search(cursor, uid, [('company_id','=',company.id),
262
262
('date_start','<=',statement.date),
263
('date_stop','>=',statement.date),
265
266
# Create the bank statement record
266
267
statement_id = statement_obj.create(cursor, uid, dict(