diff --git a/statement_voucher_killer/test/correct_date_in_move_line.yml b/statement_voucher_killer/test/correct_date_in_move_line.yml index 84b29520..c7147920 100644 --- a/statement_voucher_killer/test/correct_date_in_move_line.yml +++ b/statement_voucher_killer/test/correct_date_in_move_line.yml @@ -26,6 +26,7 @@ Now I can check that that the date in move line is equal to line date - !python {model: account.move.line}: | + import time line_ids = self.search(cr, uid, [('statement_id', '=', ref('statement_test_date1'))],limit=1) line = self.browse(cr, uid, line_ids)[0] assert line.date == time.strftime('%Y-12-20'), "Date (year-12-20) not equal to = %s" % line.date