[FIX]account_followup : fix bug in test where year was hardcoded and it is not the...
authorCedric Snauwaert <csn@openerp.com>
Wed, 2 Jan 2013 09:34:05 +0000 (10:34 +0100)
committerCedric Snauwaert <csn@openerp.com>
Wed, 2 Jan 2013 09:34:05 +0000 (10:34 +0100)
bzr revid: csn@openerp.com-20130102093405-sw93j72ukkqzr9cd

addons/account_followup/test/account_followup.yml

index 54dd328..ceb7ec2 100644 (file)
@@ -3,7 +3,7 @@
 -
   !record {model: account.invoice, id: account.demo_invoice_0}:
     check_total: 14.0
-    date_invoice: 2012-06-2
+    date_invoice: !eval "'%s-06-2' %(datetime.now().year)"
     invoice_line:
       - account_id : account.a_sale
         name: 'Test PC'