[FIX]account_followup : fix bug in test where year was hardcoded and it is not the...
[odoo/odoo.git] / addons / account_followup / test / account_followup.yml
index b5613db..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'
 -
   I create a follow-up.
 -
-  !record {model: account.followup.print, id: account_followup_print_0}:
+  !record {model: account_followup.print, id: account_followup_print_0}:
     {}
 - 
   I will process follow-ups
 - 
-  !python {model: account.followup.print}:  |
+  !python {model: account_followup.print}:  |
     self.do_process(cr, uid, [ref("account_followup_print_0")], {"active_ids": [ref("account_followup.account_followup_print_menu")], "active_id": ref("account_followup.account_followup_print_menu"),})
\ No newline at end of file