[FIX] missing import time

This commit is contained in:
vrenaville
2014-10-10 15:25:40 +02:00
parent d600eff7a2
commit 7d29ec2f33

View File

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